Registry / utility / tinode-snowflake

tinode-snowflake

JSON →
library1.0.0gogounverified

Package snowflake provides a unique ID generator based on Twitter's Snowflake algorithm.

go get github.com/tinode/snowflake
INSTALL
IMPORT
SIG · TINODE-SNOWFLAKE
T
tinode-snowflake
utilitygov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

snowflake
github.com/tinode/snowflake

Generate a unique Snowflake ID

package main import ( "fmt" "github.com/tinode/snowflake" ) func main() { node, _ := snowflake.NewNode(1) id := node.Generate() fmt.Println(id) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
tinode-snowflake — go get tinode-snowflake · libregistry