MCPcopy
hub / github.com/gogo/protobuf / newTextParser

Function newTextParser

proto/text_parser.go:93–99  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

91}
92
93func newTextParser(s string) *textParser {
94 p := new(textParser)
95 p.s = s
96 p.line = 1
97 p.cur.line = 1
98 return p
99}
100
101func (p *textParser) errorf(format string, a ...interface{}) *ParseError {
102 pe := &ParseError{fmt.Sprintf(format, a...), p.cur.line, p.cur.offset}

Callers 1

UnmarshalTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…