Documentation
¶
Index ¶
- Constants
- func GetImprovedNext(pattern []rune) []int
- func GetNext(pattern []rune) []int
- func IsValidMobile(mobileNo string) bool
- func KMPImprovedSearch(content string, pattern string) int
- func KMPSearch(content string, pattern string) int
- func NewUUID(t UUIDType) (string, error)
- func Reverse(s string) string
- func SundaySearch(content string, pattern string) int
- type Trie
- type TrieNode
- type UUIDType
Constants ¶
View Source
const ( RootRune rune = 9999 MaxLen int = 50 )
Set default root value
View Source
const MobileReg = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(16[0-9])|(18[0-9])|(17[0-9]))\\d{8}$"
MobileReg define mobile regex
Variables ¶
This section is empty.
Functions ¶
func GetImprovedNext ¶
GetImprovedNext improved method for Next
func IsValidMobile ¶
IsValidMobile returns a string is a phone No. or not
func KMPImprovedSearch ¶
KMPImprovedSearch improved kmp search
func SundaySearch ¶
SundaySearch is search by Sunday
Types ¶
type Trie ¶
Trie tree model,started with root node
func (*Trie) FindAllExisted ¶
FindAllExisted get all existed content and return
Click to show internal directories.
Click to hide internal directories.