Documentation ¶
Index ¶
- func CamelToSnake(str string) string
- func IsProduction() bool
- func QueryToUint(query string) uint
- func ReturnErrorResponse(c *fiber.Ctx, err error, data interface{}) error
- func ReturnSuccessResponse(c *fiber.Ctx, code int, msg string, data interface{}) error
- func StructToJSONString(s any) string
- type JSONResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelToSnake ¶
func IsProduction ¶
func IsProduction() bool
func QueryToUint ¶
func ReturnErrorResponse ¶
func ReturnSuccessResponse ¶
func StructToJSONString ¶ added in v1.1.0
Convert struct to json string. Error ignored
Types ¶
type JSONResponse ¶
Click to show internal directories.
Click to hide internal directories.