xuuid

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 1 Imported by: 8

Documentation

Overview

Package xuuid 提供 UUID 生成工具。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UUID

func UUID() string

UUID 生成一个新的 UUID(版本7)字符串 版本7 UUID 基于时间戳(毫秒级)+随机数生成,在时间上近似单调递增, 比完全随机的版本4更适合作为数据库主键或分布式ID,可减少索引碎片。 @return @1 string 生成的 UUID 字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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