Bot releases are hidden (Show)
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.
Full Changelog: https://github.com/matoous/go-nanoid/compare/v1.5.0...v2.1.0
Published by matoous almost 4 years ago
Change API to provide 4 functions:
New
- generates new IDMust
- generates new ID and panics on errorGenerate
- generates new ID with custom alphabet and lengthMustGenerate
- generates new ID with custom alphabet and length and panics on errorFurthermore some tests were changed/adjusted/added which revealed a bug with custom alphabet containing non-ascii characters.
Published by matoous about 4 years ago
Add MustID
and MustGenerate
functions. Similar to ID
and Generate
but panic on error.
Published by matoous over 4 years ago
Published by matoous over 4 years ago
Published by matoous over 4 years ago
ID(length)
function, shorthand for Nanoid()
.Nanoid()
function.Published by matoous over 4 years ago
Published by matoous about 5 years ago