go-nanoid: github.com/matoous/go-nanoid Index | Files | Directories

package gonanoid

import "github.com/matoous/go-nanoid"

Index

Package Files

gonanoid.go

func Generate Uses

func Generate(alphabet string, size int) (string, error)

Generate is a low-level function to change alphabet and ID size.

func Nanoid Uses

func Nanoid(param ...int) (string, error)

Nanoid generates secure URL-friendly unique ID.

type Generator Uses

type Generator func([]byte) (int, error)

Generator function

var BytesGenerator Generator = rand.Read

BytesGenerator is the default bytes generator

Directories

PathSynopsis
examples

Package gonanoid imports 3 packages (graph) and is imported by 12 packages. Updated 2019-08-31. Refresh now. Tools for package owners.