Registry / utility / oklog-ulid

oklog-ulid

JSON →
library1.3.1gogounverified

Universally Unique Lexicographically Sortable Identifier implementation in Go.

go get github.com/oklog/ulid
INSTALL
IMPORT
SIG · OKLOG-ULID
O
oklog-ulid
utilitygov1.3.1
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.

ulid
✓ github.com/oklog/ulid

Generate a new ULID

package main import ( "fmt" "math/rand" "time" "github.com/oklog/ulid" ) func main() { entropy := ulid.Monotonic(rand.New(rand.NewSource(time.Now().UnixNano())), 0) id := ulid.MustNew(ulid.Timestamp(time.Now()), entropy) fmt.Println(id.String()) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
oklog-ulid — go get oklog-ulid · libregistry