Slide 12
Slide 12 text
main.go
func mainHandler(w http.ResponseWriter, req *http.Request) {
fmt.Fprintf(w, message)
}
func main() {
r := mux.NewRouter()
r.HandleFunc("/", mainHandler)
port := ":8081"
if v, ok := os.LookupEnv("PORT"); ok {
port = ":" + v
}