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

Function CompactTextString

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

CompactTextString returns a compact proto text formatted string of m.

(m Message)

Source from the content-addressed store, hash-verified

104
105// CompactTextString returns a compact proto text formatted string of m.
106func CompactTextString(m Message) string { return compactTextMarshaler.Text(m) }
107
108var (
109 newline = []byte("\n")

Callers 15

TestCompactTextFunction · 0.92
StringMethod · 0.92
TestUnknownV2Function · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92

Calls 1

TextMethod · 0.80

Tested by 3

TestCompactTextFunction · 0.74
StringMethod · 0.74
TestUnknownV2Function · 0.74