Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docopt/docopt.go
/ Error
Method
Error
docopt.go:582–584 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
580
}
581
582
func
(e UserError) Error() string {
583
return
e.msg
584
}
585
func
newUserError(msg string, f ...
interface
{}) error {
586
return
&UserError{fmt.Sprintf(msg, f...),
""
}
587
}
Callers
15
TestPatternFlat
Function · 0.45
TestCommands
Function · 0.45
TestParseArgv
Function · 0.45
TestParsePattern
Function · 0.45
TestLongOptionsErrorHandling
Function · 0.45
TestShortOptionsErrorHandling
Function · 0.45
TestMatchingParen
Function · 0.45
TestAllowDoubleDash
Function · 0.45
TestDocopt
Function · 0.45
TestLanguageErrors
Function · 0.45
TestIssue40
Function · 0.45
TestCountMultipleFlags
Function · 0.45
Calls
no outgoing calls
Tested by
15
TestPatternFlat
Function · 0.36
TestCommands
Function · 0.36
TestParseArgv
Function · 0.36
TestParsePattern
Function · 0.36
TestLongOptionsErrorHandling
Function · 0.36
TestShortOptionsErrorHandling
Function · 0.36
TestMatchingParen
Function · 0.36
TestAllowDoubleDash
Function · 0.36
TestDocopt
Function · 0.36
TestLanguageErrors
Function · 0.36
TestIssue40
Function · 0.36
TestCountMultipleFlags
Function · 0.36