Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docopt/docopt.go
/ newOneOrMore
Function
newOneOrMore
docopt.go:763–765 ·
view source on GitHub ↗
(pl ...*pattern)
Source
from the content-addressed store, hash-verified
761
}
762
763
func
newOneOrMore(pl ...*pattern) *pattern {
764
return
newBranchPattern(patternOneOrMore, pl...)
765
}
766
767
func
newOptional(pl ...*pattern) *pattern {
768
return
newBranchPattern(patternOptionAL, pl...)
Callers
7
parseSeq
Function · 0.85
TestPatternFlat
Function · 0.85
TestParsePattern
Function · 0.85
TestOneOrMoreMatch
Function · 0.85
TestListArgumentMatch
Function · 0.85
TestPatternEither
Function · 0.85
TestPatternFixRepeatingArguments
Function · 0.85
Calls
1
newBranchPattern
Function · 0.85
Tested by
6
TestPatternFlat
Function · 0.68
TestParsePattern
Function · 0.68
TestOneOrMoreMatch
Function · 0.68
TestListArgumentMatch
Function · 0.68
TestPatternEither
Function · 0.68
TestPatternFixRepeatingArguments
Function · 0.68