MCPcopy Index your code
hub / github.com/git-bug/git-bug / NewWithInput

Function NewWithInput

bridge/gitlab/parser/parser.go:22–31  ·  view source on GitHub ↗

NewWithInput returns a new parser instance

(t parserType, input string)

Source from the content-addressed store, hash-verified

20
21// NewWithInput returns a new parser instance
22func NewWithInput(t parserType, input string) parser {
23 var p parser
24
25 switch t {
26 case TitleParser:
27 p = titleParser{input: input}
28 }
29
30 return p
31}
32
33type titleParser struct {
34 input string

Callers 3

KindMethod · 0.92
TitleMethod · 0.92
TestTitleParserFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestTitleParserFunction · 0.68