Exemplo n.º 1
0
func (m *SimpleMessage) String() string { return proto.CompactTextString(m) }
Exemplo n.º 2
0
func (m *Nested) String() string { return proto.CompactTextString(m) }
Exemplo n.º 3
0
func (m *MessageWithMap) String() string { return proto.CompactTextString(m) }
Exemplo n.º 4
0
func TestCompactText(t *testing.T) {
	s := proto.CompactTextString(newTestMessage())
	if s != compactText {
		t.Errorf("Got:\n===\n%v===\nExpected:\n===\n%v\n===\n", s, compactText)
	}
}