github.com/grahambrereton-form3/tilt@v0.10.18/integration/analytics/main.go (about) 1 package main 2 3 import ( 4 "log" 5 "net/http" 6 ) 7 8 func main() { 9 http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { 10 msg := "🍄 One-Up! 🍄" 11 log.Printf("Got HTTP request for %s", r.URL.Path) 12 _, _ = w.Write([]byte(msg)) 13 }) 14 15 log.Println("Serving oneup on container port 8000") 16 _ = http.ListenAndServe(":8000", nil) 17 }