Documentation ¶
Index ¶
- Variables
- func FormatUUID(buf []byte) (string, error)
- func GenerateRandomBytes(size int) ([]byte, error)
- func GenerateUUID() (string, error)
- func GetMD5Base64(bytes []byte) (base64Value string)
- func GetMd5String(s string) string
- func GetUUID() (uuidHex string)
- func New() string
- func NextStrToken() string
- func NextToken() int64
- func ParseUUID(uuid string) ([]byte, error)
- func RandStringBytes(n int) string
- func UniqueId() string
- type ID
- type IdWorker
- type UUID
Constants ¶
This section is empty.
Variables ¶
View Source
var X gen
Functions ¶
func FormatUUID ¶
func GenerateRandomBytes ¶
GenerateRandomBytes is used to generate random bytes of given size.
func GenerateUUID ¶
GenerateUUID is used to generate a random UUID
func GetMD5Base64 ¶
func GetMd5String ¶
func NextStrToken ¶
func NextStrToken() string
func RandStringBytes ¶
Types ¶
type IdWorker ¶
type IdWorker struct {
// contains filtered or unexported fields
}
func (*IdWorker) InitIdWorker ¶
Click to show internal directories.
Click to hide internal directories.