Documentation ¶
Overview ¶
Package utils exposes some utility functions that can be used by other packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUUID ¶
func GenerateUUID() string
GenerateUUID generates a unique UUID in the string format.
func JSONErrorResponse ¶
func JSONErrorResponse(w http.ResponseWriter, err string)
JSONErrorResponse creates an http error response object.
func JSONNoDataResponse ¶
func JSONNoDataResponse(w http.ResponseWriter, respStr string)
JSONNoDataResponse creates an http no-data response object.
func JSONSuccessResponse ¶
func JSONSuccessResponse(w http.ResponseWriter, data interface{})
JSONSuccessResponse creates an http success response object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.