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

Method MarshalText

proto/text_test.go:288–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286}
287
288func (*textMessage) MarshalText() ([]byte, error) {
289 return []byte("custom"), nil
290}
291
292func (*textMessage) UnmarshalText(bytes []byte) error {
293 if string(bytes) != "custom" {

Callers 2

marshalMethod · 0.80
writeSingularValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected