Documentation ¶
Index ¶
- func CreateDirIfNotExists(path string) error
- func CreateFileIfNotExists(path string) error
- func RandomStringGenerator(n int) (string, error)
- func ReadJSON(w http.ResponseWriter, r *http.Request, data interface{}) error
- func WriteJSON(w http.ResponseWriter, status int, data interface{}, headers ...http.Header) error
- func WriteXML(w http.ResponseWriter, status int, data interface{}, headers ...http.Header) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomStringGenerator ¶
RandomStringGenerator returns a random string using crypto/rand lib.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.