idgen

package module
v0.0.0-...-2185039 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 5 Imported by: 1

README

idgen

Documentation

Index

Constants

This section is empty.

Variables

View Source
var New = NewUUID()

Functions

func NewFakeUUID

func NewFakeUUID(prefix string, n uint64) string

Types

type IDGenFunc

type IDGenFunc func(prefix string) string

func NewPerPrefix

func NewPerPrefix(mk func() IDGenFunc) IDGenFunc

mk is called only once per prefix. after that, mk ret val is reused.

func NewSequential

func NewSequential(n0 uint64) IDGenFunc

func NewSequentialPerPrefix

func NewSequentialPerPrefix(n0 uint64) IDGenFunc

func NewUUID

func NewUUID() IDGenFunc

Jump to

Keyboard shortcuts

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