Registry / utility / bwmarrin-go-alone

bwmarrin-go-alone

JSON →
library0.0.0-20190806015146-742bb55d1631gogounverified

Go Alone is a library for generating unique IDs using the Snowflake algorithm.

go get github.com/bwmarrin/go-alone
INSTALL
IMPORT
SIG · BWMARRIN-GO-ALONE
B
bwmarrin-go-alone
utilitygov0.0.0-20190806015146-742bb55d1631
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.

alone
github.com/bwmarrin/go-alone

Generate a unique Snowflake ID

package main import ( "fmt" "github.com/bwmarrin/go-alone" ) func main() { id := alone.Generate() fmt.Println(id) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190806015146-742bb55d1631latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
bwmarrin-go-alone — go get bwmarrin-go-alone · libregistry