package main import ( "fmt" "net/http" ) func handlerFunc(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf8") fmt.Fprint(w, "

Welcome to my awesome site!

") } func main() { http.HandleFunc("/", handlerFunc) fmt.Println("Starting the server on :3000...") http.ListenAndServe(":3000", nil) }