Versions in this module Expand all Collapse all v0 v0.0.4 Jul 9, 2021 Changes in this version + const CacheTurnoffThreshold + const DefaultPathSeparator + const DefaultVariablePattern + const MaxFindCount + var Asterisk = '\u002a' + var Brackets = '\u007b' + var GlobPattern *regexp.Regexp + var QuestionMark = '\u003f' + var VariablePattern *regexp.Regexp + var WildcardChars = []rune + func ClearSyncMap(m *SyncMap) + func Increment(value *int) + func IsPattern(path string) bool + func Match(pattern, path string) bool + func MatchStart(pattern, path string) bool + func SetCachePatterns(cachePatterns bool) + func SetCaseSensitive(caseSensitive bool) + func SetPathSeparator(pathSeparator string) + func SetTrimTokens(trimTokens bool) + type AntPathMatcher struct + func New() *AntPathMatcher + func NewS(separator string) *AntPathMatcher + func (ant *AntPathMatcher) Combine(pattern1, pattern2 string) string + func (ant *AntPathMatcher) ExtractPathWithinPattern(pattern, path string) string + func (ant *AntPathMatcher) ExtractUriTemplateVariables(pattern, path string) *map[string]string + func (ant *AntPathMatcher) GetPatternComparator(path string) *AntPatternComparator + func (ant *AntPathMatcher) IsPattern(path string) bool + func (ant *AntPathMatcher) Match(pattern, path string) bool + func (ant *AntPathMatcher) MatchStart(pattern, path string) bool + func (ant *AntPathMatcher) PatternCacheSize() int64 + func (ant *AntPathMatcher) SetCachePatterns(cachePatterns bool) + func (ant *AntPathMatcher) SetCaseSensitive(caseSensitive bool) + func (ant *AntPathMatcher) SetPathSeparator(pathSeparator string) + func (ant *AntPathMatcher) SetTrimTokens(trimTokens bool) + type AntPathStringMatcher struct + func NewDefaultStringMatcher(pattern string, caseSensitive bool) *AntPathStringMatcher + func NewMatchesStringMatcher(pattern string, caseSensitive bool) *AntPathStringMatcher + func (sm *AntPathStringMatcher) FindSubMatch(source []byte, index int) *string + func (sm *AntPathStringMatcher) GroupCount() int + func (sm *AntPathStringMatcher) MatchStrings(str string, uriTemplateVariables *map[string]string) bool + type AntPatternComparator struct + func NewDefaultAntPatternComparator(path string) *AntPatternComparator + func (comparator *AntPatternComparator) Compare(pattern1, pattern2 string) int + type PathMatcher interface + Combine func(pattern1, pattern2 string) string + ExtractPathWithinPattern func(pattern, path string) string + ExtractUriTemplateVariables func(pattern, path string) *map[string]string + GetPatternComparator func(path string) *AntPatternComparator + IsPattern func(path string) bool + Match func(pattern, path string) bool + MatchStart func(pattern, path string) bool + PatternCacheSize func() int64 + SetCachePatterns func(cachePatterns bool) + SetCaseSensitive func(caseSensitive bool) + SetPathSeparator func(pathSeparator string) + SetTrimTokens func(trimTokens bool) + type PathSeparatorPatternCache struct + func NewDefaultPathSeparatorPatternCache(pathSeparator string) *PathSeparatorPatternCache + func (patternCache *PathSeparatorPatternCache) GetEndsOnDoubleWildCard() string + func (patternCache *PathSeparatorPatternCache) GetEndsOnWildCard() string + type PatternInfo struct + func NewDefaultPatternInfo(pattern string) *PatternInfo + func (pi *PatternInfo) GetDoubleWildcards() int + func (pi *PatternInfo) GetLength() int + func (pi *PatternInfo) GetSingleWildcards() int + func (pi *PatternInfo) GetTotalCount() int + func (pi *PatternInfo) GetUriVars() int + func (pi *PatternInfo) IsLeastSpecific() bool + func (pi *PatternInfo) IsPrefixPattern() bool + type SyncMap struct + func (m *SyncMap) MyDelete(key interface{}) + func (m *SyncMap) MyLen() int64 + func (m *SyncMap) MyLoad(key interface{}) (value interface{}, ok bool) + func (m *SyncMap) MyLoadOrStore(key, value interface{}) (actual interface{}, loaded bool) + func (m *SyncMap) MyRange(f func(key, value interface{}) bool) + func (m *SyncMap) MyStore(key, value interface{})