SilkyFalcon

Generation

generate functionWed, 07 Dec 2022

Create a webserver with json format

func main() { http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, `{"message": "Hello World"}`) }) http.ListenAndServe(":3000", nil) }

Want to kickstart your project?Use the new AI Studio to create your code