Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cregions = [][]rune{ []rune("CIA"), }
View Source
var Gregions = [][]rune{ []rune("GN"), []rune("GNED"), }
View Source
var Sregions = [][]rune{ []rune("SH"), []rune("SIO"), []rune("SIA"), }
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder(opts ...EncoderOption) *Encoder
func (*Encoder) SetOption ¶
func (e *Encoder) SetOption(opt EncoderOption)
SetOption set encoder option. Method is not safe for concurrent usage
type EncoderOption ¶
type EncoderOption func(e *Encoder)
EncoderOption func to provide encoder configuration parameter
func WithMaxLen ¶
func WithMaxLen(maxLen int) EncoderOption
WithMaxLen Set max length of the generated token
Click to show internal directories.
Click to hide internal directories.