uniq

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 5 Imported by: 1

README

uniq

uniq is simple unique value generator.

Summary

  • Written on pure Go
  • Thread safe
  • It can be used in a distributed system
  • Doesn't create goroutines
  • MIT license

Require

  • Golang (version >= 1.10)

Install

go get github.com/wmentor/uniq

Usage

package main

import (
  "fmt"

  "github.com/wmentor/uniq"
)

func main() {
	
	for i := 0 ; i < 10 ; i++ {
	  fmt.Println(uniq.New())
	}

}

Output is like this:

a801562de175015fd7d574d3129b47842
a801562de175015fd7d574d350c3c7843
a801562de175015fd7d574d35d82f7844
a801562de175015fd7d574d3816dd7845
a801562de175015fd7d574d3939407846
a801562de175015fd7d574d39feaf7847
a801562de175015fd7d574d3a89637848
a801562de175015fd7d574d3b0f2a7849
a801562de175015fd7d574d3b9569784a
a801562de175015fd7d574d3c1b01784b

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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