Documentation ¶
Index ¶
- func IsNiceID(id []int64, filter Filter) bool
- type Config
- type Filter
- func (f *Filter) Contains(id []int64) bool
- func (f *Filter) HasPrefix(id []int64) bool
- func (f *Filter) HasSuffix(id []int64) bool
- func (f *Filter) Is2in4(id []int64) bool
- func (f *Filter) IsBoom(id []int64) bool
- func (f *Filter) IsInPrefixRange(id []int64) bool
- func (f *Filter) IsInSuffixRange(id []int64) bool
- func (f *Filter) IsRound(id []int64) bool
- func (f *Filter) IsSerial(id []int64) bool
- func (f *Filter) IsSerialInner(id []int64) bool
- func (f *Filter) IsTooFew(id []int64) bool
- type GenResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Prefix []string // 指定前缀 Suffix []string // 指定后缀 PrefixRange []map[string]int64 // 前缀范围 SuffixRange []map[string]int64 // 后缀返回 Contains []string // 模糊匹配 }
Config : ...
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter : ...
func (*Filter) IsInPrefixRange ¶
IsInPrefixRange 前缀是否在指定范围内
func (*Filter) IsInSuffixRange ¶
IsInSuffixRange 后缀是否在指定范围内
func (*Filter) IsSerialInner ¶
IsSerialInner 是否内部包含连续四位数
Click to show internal directories.
Click to hide internal directories.