import "github.com/cognusion/go-sequence"
Package sequence provides a performant goro-safe incrementing sequencer, with randomized HashID-encoding of the values to work as a font of IDs for errors, requests, etc.
type Seq struct {
// contains filtered or unexported fields
}Seq is a sequencer. It should never be used by default, and instead obtained via a New function
func New(start int) *SeqNew returns an initialized Seq suitable for most cases
func NewWithHashIDLength(start, hashIDlength int) *SeqNewWithHashIDLength returns an initilized Seq with the minimum hashID length set as specified
func (s *Seq) Next() intNext returns the next int in the sequence
func (*Seq) NextHashID
func (s *Seq) NextHashID() stringNextHashID returns the hashID-encoded value of the next int in the sequence
Generated by godoc2md