HandleFunc registers the handler function for the given pattern in the server mux (router).
You can pass define an anonymous function, as we have seen in the basic Hello World example:
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Hello, w...