Created
April 28, 2020 21:59
-
-
Save diegoholiveira/b44b2f4b0e6ff3b0fafa3f075fba1c59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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