github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/debug/go/app.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"html"
     6  	"log"
     7  	"net/http"
     8  )
     9  
    10  func handler(w http.ResponseWriter, r *http.Request) {
    11  	fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
    12  }
    13  
    14  func main() {
    15  	log.Print("Go web app ready on port 8080")
    16  	http.HandleFunc("/", handler)
    17  	http.ListenAndServe(":8080", nil)
    18  }