Documentation
¶
Index ¶
- Constants
- type ShortUUID
- type StringSet
- func (set *StringSet) Add(i string) bool
- func (set *StringSet) Contains(i string) bool
- func (set *StringSet) Index(c string) int
- func (set *StringSet) ItemByIndex(idx int) string
- func (set *StringSet) Len() int
- func (set *StringSet) Remove(i string)
- func (set *StringSet) Sort()
- func (set *StringSet) String() string
Constants ¶
View Source
const (
DEFAULT_ALPHABET = "23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortUUID ¶
type ShortUUID struct {
// contains filtered or unexported fields
}
func NewWithAlphabet ¶
func (*ShortUUID) Encode ¶
Encodes a UUID into a string (LSB first) according to the alphabet If leftmost (MSB) bits 0, string might be shorter
func (*ShortUUID) SetAlphabet ¶
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
func NewStringSet ¶
func NewStringSet() *StringSet
func (*StringSet) ItemByIndex ¶
Click to show internal directories.
Click to hide internal directories.