Popularity
1.9
Growing
Activity
0.0
Stable
19
2
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.
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Promo
www.sonarqube.org
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.