util

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPage     = 1
	DefaultPageSize = 10
)
View Source
const (
	NotFindTip       = "未查询到相关信息"
	SearchSuccessTip = "查询成功"
	SuccessTip       = "success"
)
View Source
const (
	SuccessCode = 0
	FailCode    = -1
)

Variables

This section is empty.

Functions

func GetPath added in v0.0.4

func GetPath() string

func Md5

func Md5(data []byte) string

func NowTimeToString

func NowTimeToString() string

NowTimeToString *******现在日期格式化 yyyy-MM-dd HH:mm:ss*******//

func ReflectValueByType added in v0.0.4

func ReflectValueByType(value string, valueType string) interface{}

func RemoveRepetitionIntSlice added in v0.0.8

func RemoveRepetitionIntSlice(targetList []int) (result []int)

func RemoveRepetitionStringSlice added in v0.0.8

func RemoveRepetitionStringSlice(targetList []string) (result []string)

func RemoveSliceEmpty

func RemoveSliceEmpty(arg []string) []string

RemoveSliceEmpty *******删除slice里面的空格和去除字符的前后的空格*******//

func ReturnResponse

func ReturnResponse(httpCode, errCode int, message interface{}, data interface{}, c *gin.Context, version ...int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL