stringsp

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB = uint(1024)
	MB = uint64(1024 * 1024)
	GB = uint64(1024 * 1024 * 1024)
	TB = uint64(1024 * 1024 * 1024 * 1024)
	EB = uint64(1024 * 1024 * 1024 * 1024 * 1024)
)

Variables

This section is empty.

Functions

func BinaryUnitToStr added in v1.3.1

func BinaryUnitToStr(binaryUnit uint64) (size string)

func DesDecrypt added in v1.7.2

func DesDecrypt(src, key []byte) ([]byte, error)

DesDecrypt Des解密

func DesEncrypt added in v1.7.2

func DesEncrypt(src, key []byte) ([]byte, error)

DesEncrypt Des加密

func GetHostAndPathFromURL added in v1.3.1

func GetHostAndPathFromURL(urlstr string) (string, string, string, string, error)

func GetRandomString

func GetRandomString(len int) string

GetRandomString 生成随机字符串

func GetRandomStringNum

func GetRandomStringNum(len int) string

GetRandomStringNum 生成随机数字字符串

func GetTimeStampID

func GetTimeStampID() int64

GetTimeStampID 获取时间戳ID

func StrIsInList added in v1.5.1

func StrIsInList(str string, strList []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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