Registry / utility / speps-go-hashids-v2

speps-go-hashids-v2

JSON →
library2.0.1gogounverified

Go implementation of Hashids, generating short unique IDs from integers.

go get github.com/speps/go-hashids/v2
INSTALL
IMPORT
SIG · SPEPS-GO-HASHIDS-V
S
speps-go-hashids-v2
utilitygov2.0.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.

hashids
github.com/speps/go-hashids/v2

Encode integers into a hashid

package main import ( "fmt" "github.com/speps/go-hashids/v2" ) func main() { hd := hashids.NewData() hd.Salt = "my-salt" h, _ := hashids.NewWithData(hd) id, _ := h.Encode([]int{1, 2, 3}) fmt.Println(id) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
speps-go-hashids-v2 — go get speps-go-hashids-v2 · libregistry