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

Method UnmarshalText

proto/text_test.go:59–64  ·  view source on GitHub ↗
(bytes []byte)

Source from the content-addressed store, hash-verified

57}
58
59func (*textMessage) UnmarshalText(bytes []byte) error {
60 if string(bytes) != "custom" {
61 return errors.New("expected 'custom'")
62 }
63 return nil
64}
65
66func (*textMessage) Reset() {}
67func (*textMessage) String() string { return "" }

Callers 1

UnmarshalTextFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected