go-nanoid
This module is a Go implementation of nanoid.
Features of the nanoid spec are:
- Use of hardware random generator
- Has larger alphabet than UUID (
A-Za-z0-9_-
), so ID size is reduced from 36 to 21 characters - Faster than UUID
Read more here
Benchmarks
All benchmarks & tests can be found in nanoid_test.go.