trans

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxUint63 = uint64(1 << 63)
	Salt      = "!DZbcw#@1RAh4JMrTxc6O@5Zq6fPCEjSWkjPX1^iK6amuDu0UkvMJXsd&N8Rfuvr"
)

Variables

This section is empty.

Functions

func EncryptMd5

func EncryptMd5(str string) (res string)

EncryptMd5 md5加密

func GenCode

func GenCode(n int) string

GenCode 生成一个指定位数的随机数

func GetLogInfo

func GetLogInfo(skip int) string

GetLogInfo 获取调用此方法 所在的文件、方法名、行号

func Int64ToIP

func Int64ToIP(ipInt64 int64) string

Int64ToIP 将一个最高位为1的int64转成ip string

func IpToInt64

func IpToInt64(ip string) int64

IpToInt64 将ip string 转成 负的int64 (最高位置1)

func MapString2Interface

func MapString2Interface(m map[string]string) map[string]interface{}

func MustAtoi

func MustAtoi(s string) int

MustAtoi string to int

Types

This section is empty.

Jump to

Keyboard shortcuts

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