Go Nanoid Versions Save

Golang random IDs generator.

v2.0.0

3 years ago

Change API to provide 4 functions:

  • New - generates new ID
  • Must - generates new ID and panics on error
  • Generate - generates new ID with custom alphabet and length
  • MustGenerate - generates new ID with custom alphabet and length and panics on error

Furthermore some tests were changed/adjusted/added which revealed a bug with custom alphabet containing non-ascii characters.

v1.5.0

3 years ago

Add MustID and MustGenerate functions. Similar to ID and Generate but panic on error.

v1.4.1

3 years ago

v1.4.0

3 years ago
  • Generate valid id for any alphabet (support for non-ascii alphabets)
  • Add more complex examples

v1.3.0

4 years ago
  • Add ID(length) function, shorthand for Nanoid().
  • Add checks for parameters of Nanoid() function.

v1.2.0

4 years ago
  • Update golang to 1.14

1.0.0

4 years ago
  • A release with all that's needed same as implementations in other languages.