go-nanoid

Build Status Build Status GitHub Issues

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

See comparison with UUID

Read more here


Benchmarks

All benchmarks & tests can be found in nanoid_test.go.

6,000,000 Nano IDs in 1500ms. benchmark


Credits & references


License

MIT LICENSE

GitHub

View Github