SilkyFalcon

Generation

generate functionWed, 07 Dec 2022

Create a webserver

package main import ( "fmt" "net/http" ) func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, you've requested: %s\n", r.URL.Path) }) http.ListenAndServe(":8000", nil) }

Questions about programming?Chat with your personal AI assistant