Skip to content

Instantly share code, notes, and snippets.

@Daniel1984
Created April 22, 2020 17:53
Show Gist options
  • Save Daniel1984/adc580a1955d72c14bb9a68bec6489a0 to your computer and use it in GitHub Desktop.
Save Daniel1984/adc580a1955d72c14bb9a68bec6489a0 to your computer and use it in GitHub Desktop.
// 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