mencrypt

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TimeID

func TimeID() string

生成一个可读的 Time ID,基于当前时间戳和随机数。

func UUID

func UUID() string

UUID 生成一个 RFC4122 v4 随机 UUID 并返回字符串表示(小写,带连字符)。

示例:

id := UUID()
// id -> "550e8400-e29b-41d4-a716-446655440000"

说明:此函数是对第三方库的轻量封装,调用非常廉价且不会返回错误。

Types

This section is empty.

Jump to

Keyboard shortcuts

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