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

Function MarshalTextString

proto/text_encode.go:100–100  ·  view source on GitHub ↗

MarshalTextString returns a proto text formatted string of m.

(m Message)

Source from the content-addressed store, hash-verified

98
99// MarshalTextString returns a proto text formatted string of m.
100func MarshalTextString(m Message) string { return defaultTextMarshaler.Text(m) }
101
102// CompactText writes the compact proto text format of m to w.
103func CompactText(w io.Writer, m Message) error { return compactTextMarshaler.Marshal(w, m) }

Callers 5

TestClearAllExtensionsFunction · 0.92
TestRepeatedNilTextFunction · 0.92
TestRacyMarshalFunction · 0.92
TestUnmarshalingFunction · 0.92
TestUnmarshalNextFunction · 0.92

Calls 1

TextMethod · 0.80

Tested by 5

TestClearAllExtensionsFunction · 0.74
TestRepeatedNilTextFunction · 0.74
TestRacyMarshalFunction · 0.74
TestUnmarshalingFunction · 0.74
TestUnmarshalNextFunction · 0.74