uuid

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NumSource = "0123456789"
	HexSource = "ABCDEF0123456789"
	StrSource = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
)

Variables

This section is empty.

Functions

func Md5

func Md5(src string) string

Md5 md5加密

func RandomHex

func RandomHex(bytesLen int) string

RandomHex 随机一个hex字符串

func RandomNum

func RandomNum(length int) string

RandomNum 随机一个数字字符串

func RandomStr

func RandomStr(length int) string

RandomStr 随机一个字符串

func SameSubStr

func SameSubStr(subStr string, repeat int) string

SameSubStr 创建多少个相同 子字符串的字符串

func UUID

func UUID() string

UUID 生成uuid

func UniqueID

func UniqueID(fields ...interface{}) string

UniqueID 根据指定字段生成 uuid

Types

This section is empty.

Jump to

Keyboard shortcuts

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