go-nanoid

Golang random IDs generator.

MIT License

Stars
1.2K
Committers
8

Bot releases are visible (Hide)

go-nanoid - v2.1.0 Latest Release

Published by matoous 5 months ago

Last version of go-nanoid drops support for older Go versions. From now on we will maintain support for last 3 major versions (that is, right now the oldest supported version is v1.20). Other than that, a few small updates and dependency bumps, see changelog for more details.

What's Changed

New Contributors

Full Changelog: https://github.com/matoous/go-nanoid/compare/v1.5.0...v2.1.0

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

Published by matoous almost 4 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.

go-nanoid - v1.5.0: Add Must functions

Published by matoous about 4 years ago

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

go-nanoid - v1.4.1: Fix previous release

Published by matoous over 4 years ago

go-nanoid - v1.4.0: Generate valid id for any custom alphabet

Published by matoous over 4 years ago

  • Generate valid id for any alphabet (support for non-ascii alphabets)
  • Add more complex examples
go-nanoid - v1.3.0: ID function

Published by matoous over 4 years ago

  • Add ID(length) function, shorthand for Nanoid().
  • Add checks for parameters of Nanoid() function.
go-nanoid - v1.2.0: Update golang version to 1.14

Published by matoous over 4 years ago

  • Update golang to 1.14
go-nanoid - v1.0.0: First release

Published by matoous about 5 years ago

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