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!")) }