gobuch/microservices/simple-http/main.go

13 lines
219 B
Go
Raw Normal View History

2020-08-21 04:26:40 +00:00
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)
}