Popularity
2.0
Stable
Activity
0.0
Stable
22
3
4
Programming language: Go
License: MIT License
Tags:
UUID
Latest version: v0.2.0
gouid alternatives and similar packages
Based on the "UUID" category.
Alternatively, view gouid alternatives based on common mentions on social networks and blogs.
-
Monoton
Highly scalable, single/multi node, sortable, predictable and incremental unique id generator with zero allocation magic on the sequential generation -
goflake
A highly scalable and serverless unique ID generator for use in distributed systems. Written in GoLang. Inspired by Twitters Snowflake.
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Promo
www.influxdata.com
Do you think we are missing an alternative of gouid or a related project?
Popular Comparisons
README
Gouid
Use Gouid to create cryptographically secure random IDs. IDs can be byte slices or strings, both generated with just one allocation (see benchmarks below). Strings IDs use a-z and 0-9 all lowercase.
Documentation
For full documentation see pkg.go.dev.
Example
package main
import (
"fmt"
"github.com/twharmon/gouid"
)
func main() {
s := gouid.String(10)
fmt.Println(s) // mpln6nq37p
b := gouid.Bytes(16)
fmt.Println(b) // [244 188 217 137 122 245 94 126 80 119 87 170 6 178 228 179]
}
Benchmarks
BenchmarkString8 76.0 ns/op 8 B/op 1 allocs/op
BenchmarkString16 101 ns/op 16 B/op 1 allocs/op
BenchmarkString32 143 ns/op 32 B/op 1 allocs/op
BenchmarkBytes8 64.7 ns/op 8 B/op 1 allocs/op
BenchmarkBytes16 80.9 ns/op 16 B/op 1 allocs/op
BenchmarkBytes32 121 ns/op 32 B/op 1 allocs/op
Contribute
Make a pull request.