Skip to content

v2.0.0: API changes, bug fixes and codebase refactor

Compare
Choose a tag to compare
@matoous matoous released this 19 Nov 12:32

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.