Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(w http.ResponseWriter, r *http.Request)
CreateUser is a function that creates a new user
func UserHandler ¶
func UserHandler(w http.ResponseWriter, r *http.Request)
UserHandler is a function that handles user requests depending on the HTTP method POST: Create a new user GET: Get a user by id All other methods are not allowed
Types ¶
type UserDbContextKey ¶
type UserDbContextKey string
Click to show internal directories.
Click to hide internal directories.