MCPcopy
hub / github.com/golang/protobuf / Error

Method Error

proto/text_decode.go:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func (e *ParseError) Error() string {
33 if wrapTextUnmarshalV2 {
34 return e.Message
35 }
36 if e.Line == 1 {
37 return fmt.Sprintf("line 1.%d: %v", e.Offset, e.Message)
38 }
39 return fmt.Sprintf("line %d: %v", e.Line, e.Message)
40}
41
42// UnmarshalText parses a proto text formatted string into m.
43func UnmarshalText(s string, m Message) error {

Callers 15

TestNilMessageFunction · 0.45
TestExtensionsRoundTripFunction · 0.45
TestNilExtensionFunction · 0.45
initFunction · 0.45
initFunction · 0.45
UnmarshalTextFunction · 0.45
TestUnmarshalTextFunction · 0.45
TestOneofParsingFunction · 0.45
TestNumericPrimitivesFunction · 0.45
TestRequiredBitFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestNilMessageFunction · 0.36
TestExtensionsRoundTripFunction · 0.36
TestNilExtensionFunction · 0.36
initFunction · 0.36
initFunction · 0.36
TestUnmarshalTextFunction · 0.36
TestOneofParsingFunction · 0.36
TestNumericPrimitivesFunction · 0.36
TestRequiredBitFunction · 0.36
checkInitializedFunction · 0.36