6 Super short, unique, non-sequential and URL friendly IDs for Go

github.com godoc.org goreportcard.com posted by osklyar 592 days ago  

Announcing the first release of the go-shortid library (package shortid) that enables the generation of short, fully unique, non-sequential and by default URL friendly IDs at a rate of hundreds of thousand per second. It guarantees uniqueness during the time period until 2050! At the generation rates of 500k per second the IDs come back in the following form iNove6iQ9J, NVDve6-9Q, VVDvc6i99J, NVovc6-QQy, VVoveui9QC etc.

The package is heavily inspired by the node.js https://github.com/dylang/shortid library.

Register to comment or vote on this story