uniqid

package module
v0.0.0-...-49cb885 Latest Latest
Warning

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

Go to latest
Published: May 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 13

README

go-uniqid   Tweet

Golang Version GitHub issues Travis CI

Simple PHP uniqid() implementation in Golang

How to use
Just include our package

go get github.com/mintance/go-uniqid

See samples

In PHP was:

$id = uniqid("test", true);

In Go type:

id := uniqid.New(uniqid.Params{"test", true})

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params Params) string

Types

type Params

type Params struct {
	Prefix      string
	MoreEntropy bool
}

Jump to

Keyboard shortcuts

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