MCPcopy Create free account
hub / github.com/docopt/docopt.go / hasPrefix

Method hasPrefix

docopt.go:630–635  ·  view source on GitHub ↗
(prefix string)

Source from the content-addressed store, hash-verified

628 return false
629}
630func (t *token) hasPrefix(prefix string) bool {
631 if t == nil {
632 return false
633 }
634 return strings.HasPrefix(string(*t), prefix)
635}
636func (t *token) hasSuffix(suffix string) bool {
637 if t == nil {
638 return false

Callers 3

parseArgvFunction · 0.80
parseAtomFunction · 0.80
parseShortsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected