package main
import (
"encoding/json"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
response, _ := json.Marshal(map[string]string{"message": "Hello World!"})
w.Header().Set("Content-Type", "application/json")
w.Write(response)
})
http.ListenAndServe(":8080", nil)
}