Documentation
¶
Index ¶
- Constants
- func ApplyFlagFromFile(fs *flag.FlagSet, filename string) error
- func ParseSizeString(sizeStr string) (size int, err error)
- func WildcardPatternMatch(str, pattern string) bool
- type UUID64Component
- type UUID64Generator
- func (self *UUID64Generator) AddComponent(com *UUID64Component)
- func (self *UUID64Generator) AddSeqComponent(numF uint)
- func (self *UUID64Generator) AddTimeComponent(numF uint)
- func (self *UUID64Generator) Generate() (ret uint64)
- func (self *UUID64Generator) LeftNumF() (ret uint)
- func (self *UUID64Generator) UsedNumF() (ret uint)
Constants ¶
View Source
const (
MaxNumFInt64 = 16
)
Variables ¶
This section is empty.
Functions ¶
func ParseSizeString ¶
func WildcardPatternMatch ¶
Function that matches input str with given wildcard pattern
Types ¶
type UUID64Component ¶
type UUID64Generator ¶
type UUID64Generator struct {
// contains filtered or unexported fields
}
func NewUUID64Generator ¶
func NewUUID64Generator() *UUID64Generator
func (*UUID64Generator) AddComponent ¶
func (self *UUID64Generator) AddComponent(com *UUID64Component)
func (*UUID64Generator) AddSeqComponent ¶
func (self *UUID64Generator) AddSeqComponent(numF uint)
序列号组件
func (*UUID64Generator) AddTimeComponent ¶
func (self *UUID64Generator) AddTimeComponent(numF uint)
添加时间组件
func (*UUID64Generator) Generate ¶
func (self *UUID64Generator) Generate() (ret uint64)
按给定的组件规则生成一个UUID
func (*UUID64Generator) LeftNumF ¶
func (self *UUID64Generator) LeftNumF() (ret uint)
func (*UUID64Generator) UsedNumF ¶
func (self *UUID64Generator) UsedNumF() (ret uint)
Click to show internal directories.
Click to hide internal directories.