Loading Procfile 0 → 100644 +1 −0 Original line number Diff line number Diff line web: gree-albatros main.go 0 → 100644 +19 −0 Original line number Diff line number Diff line package main import ( "fmt" "net/http" ) func main() { http.HandleFunc("/", hello) fmt.Println("listening...") err := http.ListenAndServe(":5000", nil) if err != nil { panic(err) } } func hello(res http.ResponseWriter, req *http.Request) { fmt.Fprintln(res, "hello, green-albatros") } Loading
main.go 0 → 100644 +19 −0 Original line number Diff line number Diff line package main import ( "fmt" "net/http" ) func main() { http.HandleFunc("/", hello) fmt.Println("listening...") err := http.ListenAndServe(":5000", nil) if err != nil { panic(err) } } func hello(res http.ResponseWriter, req *http.Request) { fmt.Fprintln(res, "hello, green-albatros") }