Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - aidarkhanov/nanoid: A tiny and fast Go unique string generator

A tiny and fast Go unique string generator. Contribute to aidarkhanov/nanoid development by creating an account on GitHub.

Visit SiteGitHub - aidarkhanov/nanoid: A tiny and fast Go unique string generator

GitHub - aidarkhanov/nanoid: A tiny and fast Go unique string generator

A tiny and fast Go unique string generator. Contribute to aidarkhanov/nanoid development by creating an account on GitHub.

Powered by 0x5a.live ๐Ÿ’—

Nano ID GoDoc

A tiny and fast Go unique string generator

  • Safe. It uses cryptographically strong random APIs and tests distribution of symbols.
  • Compact. It uses a larger alphabet than UUID (A-Za-z0-9_-). So ID size was reduced from 36 to 21 symbols.
id, err := nanoid.New() //> "i25_rX9zwDdDn7Sg-ZoaH"
if err != nil {
    log.Fatalln(err)
}

Installation

Once Go is installed, run the following command to get Nano ID.

go get github.com/aidarkhanov/nanoid/v2

Documentation

The package reference is located at pkg.go.dev/github.com/aidarkhanov/nanoid/v2.

Roadmap

  • The API of this package is frozen.
  • Release patches if necessary.

License

This package is provided under MIT/Expat license. See LICENSE.md file for details.

Thanks to

GoLang Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.