Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
RandomString generates a string with the given length using crypt/rand
func WriteJSONError ¶
func WriteJSONError(w http.ResponseWriter, message string, statusCode int)
Types ¶
type CustomError ¶
type CustomError struct {
Message string
}
func (*CustomError) Error ¶
func (e *CustomError) Error() string
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.