Registry / utility / oklog-ulid-v2

oklog-ulid-v2

JSON →
library2.1.1gogounverified

Package ulid implements Universally Unique Lexicographically Sortable Identifiers.

go get github.com/oklog/ulid/v2
INSTALL
IMPORT
SIG · OKLOG-ULID-V2
O
oklog-ulid-v2
utilitygov2.1.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/v2

Generate a new ULID

package main import ( "fmt" "math/rand" "time" "github.com/oklog/ulid/v2" ) 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
breakingv2 changed the import path from github.com/oklog/ulid to github.com/oklog/ulid/v2.
fix
Update import path and use v2 API.
affects: v1
Upgrade
Version history
2.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
oklog-ulid-v2 — go get oklog-ulid-v2 · libregistry