Discover Packages
github.com/wmentor/uniq
package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 18, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1 module, 1 package
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
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
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
Expand ▾
Collapse ▴
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.