MCPcopy Index your code
hub / github.com/antonmedv/gitmal / newParser

Function newParser

pkg/gitdiff/parser.go:86–91  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

84}
85
86func newParser(r io.Reader) *parser {
87 if r, ok := r.(stringReader); ok {
88 return &parser{r: r}
89 }
90 return &parser{r: bufio.NewReader(r)}
91}
92
93// Next advances the parser by one line. It returns any error encountered while
94// reading the line, including io.EOF when the end of stream is reached.

Callers 2

newTestParserFunction · 0.85
ParseFunction · 0.85

Calls

no outgoing calls

Tested by 1

newTestParserFunction · 0.68