go-web-docker/main.go

13 lines
202 B
Go
Raw Permalink Normal View History

2023-07-29 21:55:08 -04:00
package main
import "net/http"
func main() {
http.HandleFunc("/", hello)
http.ListenAndServe(":8000", nil)
}
func hello(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello World!"))
}