Skip to content

Instantly share code, notes, and snippets.

@diegoholiveira
Created April 28, 2020 21:59
Show Gist options
  • Save diegoholiveira/b44b2f4b0e6ff3b0fafa3f075fba1c59 to your computer and use it in GitHub Desktop.
Save diegoholiveira/b44b2f4b0e6ff3b0fafa3f075fba1c59 to your computer and use it in GitHub Desktop.
type HelloHandler struct {
}
func NewHelloHandler() HelloHandler {
return HelloHandler{}
}
func (h HelloHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
_, _ = fmt.Fprintf(w, "Hello")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment