Documentation
¶
Index ¶
- func GenerateRandomString(length int) string
- func IsAllowedFileType(fileType string, w http.ResponseWriter) bool
- func JsonReaderFactory(in interface{}) (io.Reader, error)
- func RenderError(w http.ResponseWriter, err error, statusCode int)
- func RenderIfError(err error, w http.ResponseWriter, statusCode int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
func IsAllowedFileType ¶
func IsAllowedFileType(fileType string, w http.ResponseWriter) bool
func JsonReaderFactory ¶ added in v1.0.2
func RenderError ¶
func RenderError(w http.ResponseWriter, err error, statusCode int)
func RenderIfError ¶
func RenderIfError(err error, w http.ResponseWriter, statusCode int) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.