Documentation ¶
Index ¶
- Variables
- func GetAPIKeyFromRequest(r *http.Request) (string, error)
- func GetTokenFromRequest(r *http.Request) (string, error)
- func ParseJSON(r *http.Request, payload interface{}) error
- func RespondWithError(w http.ResponseWriter, status int, err error)
- func RespondWithJSON(w http.ResponseWriter, status int, v any) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Validate = validator.New()
Functions ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, status int, err error)
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, status int, v any) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.