Versions in this module Expand all Collapse all v1 v1.1.0 Apr 25, 2023 Changes in this version type Generator + func (gen *Generator) SID() string + type GeneratorInterface interface + OID func() string + SID func() string + UID func() string v1.0.0 Jun 3, 2020 Changes in this version + var Crockford32Encoder = base32.NewEncoding("0123456789abcdefghjkmnpqrstvwxyz").WithPadding(base32.NoPadding) + var CryptoSource io.Reader = readerFunc(crand.Read) + var HexEncoder = Encoder(hex.EncodeToString) + var MathSource io.Reader = readerFunc(mrand.Read) + func OID() string + func UID() string + type Encoder func([]byte) string + func (e Encoder) EncodeToString(b []byte) string + type EncoderToString interface + EncodeToString func([]byte) string + type Generator struct + func DefaultGenerator() *Generator + func NewGenerator(enc EncoderToString, src io.Reader, len int) *Generator + func (gen *Generator) OID() string + func (gen *Generator) UID() string