Versions in this module Expand all Collapse all v0 v0.0.3 Mar 23, 2021 v0.0.2 Mar 23, 2021 Changes in this version + func FailOnError(err error, msg string) + func ParseUInt(stringToParse string) (uint, error) + func ParseUInt64(stringToParse string) (uint64, error) + func RandomString10() string + func ReadJSON(w http.ResponseWriter, r *http.Request, v interface{}) error + func ReadValidateJSON(w http.ResponseWriter, r *http.Request, v interface{}) error + func WriteErrorJSON(w http.ResponseWriter, status int, message string) + func WriteJSON(w http.ResponseWriter, status int, v interface{}) + type StatusResponse struct + Message string + Status string + type Validable interface + Validate func() error