gobuch/microservices/simple-http/main.go
2021-04-06 05:58:03 +02:00

13 lines
217 B
Go

package main
import "net/http"
func handleHttp(res http.ResponseWriter, req *http.Request) {
res.Write([]byte("Hello World"))
}
func main() {
http.HandleFunc("/", handleHttp)
http.ListenAndServe(":8080", nil)
}