Documentation
¶
Index ¶
- func Abs(num int) int
- func Base64Decode(raw string) string
- func Base64Encode(raw string) string
- func HmacSha1(input string, key string) string
- func JSONEqual(j1, j2 []byte) bool
- func MakeErrJSON(errCode int, msg string, a ...interface{}) (int, interface{})
- func MakeSuccessJSON(data interface{}) (int, interface{})
- func Md5(raw string) string
- func Retry(attempts int, f func() error) error
- func Sha1(raw string) string
- func URLDecode(raw string) string
- func URLEncode(raw string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONEqual ¶
JSONEqual determines the two given JSON are equal or not. If the input is not JSON format, then make the input as string.
func MakeErrJSON ¶
MakeErrJSON makes the error response JSON for gin.
func MakeSuccessJSON ¶
func MakeSuccessJSON(data interface{}) (int, interface{})
MakeSuccessJSON makes the successful response JSON for gin.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.