package main import ( go_private_repo_dependency "cnb.cool/examples/ecosystem/go-private-repo-dependency" "fmt" "net/http" ) func hello(w http.ResponseWriter, req *http.Request) { fmt.Fprintf(w, "hello\n") } func headers(w http.ResponseWriter, req *http.Request) { for name, headers := range req.Header { for _, h := range headers { fmt.Fprintf(w, "%v: %v\n", name, h) } } } func main() { http.HandleFunc("/hello", hello) http.HandleFunc("/headers", headers) http.ListenAndServe(fmt.Sprintf(":%d", go_private_repo_dependency.PORT), nil) }