generator

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 2 Imported by: 0

README

Build Status Go Report Card codecov

generator

Random id geneartor in golang that motivation from https://github.com/auth0/id-generator

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator random id generator

func New

func New(len int, prefix string, separator string) *Generator

New create new random id generator

func (*Generator) Get

func (id *Generator) Get() (string, error)

Get generate a new random id

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL