id

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 1 Imported by: 2

README

id

编译状态 Golang质量 版本 仓库大小 最后提交 授权协议 语言个数 最佳语言 星星个数

标识生成算法,提供基础接口

捐助

支持宝 微信

感谢Jetbrains

本项目通过Jetbrains开源许可IDE编写源代码,特此感谢

Jetbrains图标

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	// Next 下一个标识
	Next() (Value, error)

	// Parse 从数字转换为标识
	Parse(from uint64) Value
}

Generator 生成器

type Value added in v0.1.0

type Value interface {
	String() string

	Time() time.Time

	Get() uint64
}

Value 值 使用接口保证扩展性

Jump to

Keyboard shortcuts

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