Skip to content

Token Generator is a Golang package that provides functionality to generate unique random strings.

License

Notifications You must be signed in to change notification settings

nkanish2002/token_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Token Generator

Token Generator is a Golang based unique string generator which makes use of the "math/rand" package.

Installation

go get github.com/nkanish2002/token_generator

Usage

package main

import (
	"github.com/nkanish2002/token_generator"
	"fmt"
)

func main() {
	g := token_generator.Generator{}
	g.New()
	for i := 0; i < 100; i++ {
			token := g.GetToken(32)
			fmt.Println(token)
	}
}

Note

This is my first go library, I do not guarentee any performance benchmarks or bugs.

For more complete documentation follow https://godoc.org/github.com/nkanish2002/token_generator

About

Token Generator is a Golang package that provides functionality to generate unique random strings.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages