Documentation ¶
Index ¶
- Constants
- func GetPath() string
- func Hmac(key, data string) string
- func HmacSha256(key, data string) string
- func Md5(data []byte) string
- func NowDateToString() string
- func NowTimeToString() string
- func RandInt(min, max int) int
- func RandomString(length int) string
- func ReflectValueByType(value string, valueType string) interface{}
- func RemoveRepetitionIntSlice(targetList []int) (result []int)
- func RemoveRepetitionStringSlice(targetList []string) (result []string)
- func RemoveSliceEmpty(arg []string) []string
- func ReturnResponse(httpCode, errCode int, message interface{}, data interface{}, c *gin.Context, ...)
Constants ¶
View Source
const ( DefaultPage = 1 DefaultPageSize = 10 )
View Source
const ( NotFindTip = "未查询到相关信息" SearchSuccessTip = "查询成功" SuccessTip = "success" ActionSuccessTip = "操作成功" )
View Source
const ( RequestHeadMethod = "head" RequestOptionMethod = "options" )
View Source
const ( SuccessCode = 0 FailCode = -1 DefaultVersion = 1.0 )
Variables ¶
This section is empty.
Functions ¶
func HmacSha256 ¶ added in v0.0.20
func NowDateToString ¶ added in v0.0.21
func NowDateToString() string
func NowTimeToString ¶
func NowTimeToString() string
NowTimeToString *******现在日期格式化 yyyy-MM-dd HH:mm:ss*******//
func RandomString ¶ added in v0.0.14
func ReflectValueByType ¶ added in v0.0.4
func RemoveRepetitionIntSlice ¶ added in v0.0.8
func RemoveRepetitionStringSlice ¶ added in v0.0.8
func RemoveSliceEmpty ¶
RemoveSliceEmpty *******删除slice里面的空格和去除字符的前后的空格*******//
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.