Created
April 22, 2020 17:53
-
-
Save Daniel1984/adc580a1955d72c14bb9a68bec6489a0 to your computer and use it in GitHub Desktop.
This file contains 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
// cmd/api/handlers/getuser/getuser.go | |
package getuser | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/boilerplate/pkg/application" | |
"github.com/julienschmidt/httprouter" | |
) | |
func Do(app *application.Application) httprouter.Handle { | |
return func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { | |
fmt.Fprintf(w, "hello") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment