tool

package
v0.0.0-...-0c396f5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exist

func Exist(path string) bool

func GetNows

func GetNows(formats ...interface{}) (timeres string)

GetNows 获取当前时间

func HiddenPhone

func HiddenPhone(phonenumber string) string

func ParseDefultToStruct

func ParseDefultToStruct(objT reflect.Type, objV reflect.Value) error

func RandomNum

func RandomNum(length int) string

RandomNum 生成随机数

func RandomStr

func RandomStr(length int) string

RandomStr 生成随机字符串

func SetDCM

func SetDCM(obj interface{})

func SetStructDefault

func SetStructDefault(obj interface{}) (err error)

SetStructDefault post params

func ToMD5

func ToMD5(old string) (neww string)

ToMD5 MD5加密64位

func TransSlice2Map

func TransSlice2Map(s []string) map[string]struct{}

func UnmarshalFromString

func UnmarshalFromString(s string, o interface{}) (err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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