Documentation ¶
Index ¶
- func DateFormat(t time.Time, format string) string
- func DateParse(dateString, format string) (time.Time, error)
- func Error(c *gin.Context)
- func GetBody(c *gin.Context) []byte
- func JsonError(c *gin.Context, status int, err error)
- func JsonRaw(c *gin.Context, status int, params interface{})
- func JsonResp(c *gin.Context, status int, params gin.H)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateFormat ¶
DateFormat takes a PHP like date func to Go's time format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.