gobuch/microservices/simple-http/main.go
2020-08-21 06:26:40 +02:00

13 lines
219 B
Go

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