Documentation
¶
Index ¶
- func FormDecoder(r *http.Request, params interface{}) (*json.Decoder, error)
- func LoadFromEnv(key string) (string, error)
- func RandomString(length int) string
- func RespondWithError(w http.ResponseWriter, code int, message string)
- func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromEnv ¶
func RandomString ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.