All Projects → aidarkhanov → nanoid

aidarkhanov / nanoid

Licence: MIT license
A tiny and fast Go unique string generator

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to nanoid

nanoid
A NanoID implementation for Deno
Stars: ✭ 63 (+26%)
Mutual labels:  nanoid
nano-id-cc
Nano ID collision calculator
Stars: ✭ 31 (-38%)
Mutual labels:  nanoid
shrtn-it
A url shortener developed as a course completion project
Stars: ✭ 16 (-68%)
Mutual labels:  nanoid
nanoid.nim
🆔 the Nim implementation of NanoID
Stars: ✭ 23 (-54%)
Mutual labels:  nanoid

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].