示例#1
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)
	}
}
示例#2
0
func (m *PBMessage) String() string { return proto.CompactTextString(m) }
示例#3
0
func (m *PBDHTMessage_PBPeer) String() string { return proto.CompactTextString(m) }
示例#4
0
文件: data.pb.go 项目: mappum/go-ipfs
func (m *PBData) String() string { return proto.CompactTextString(m) }
示例#5
0
func (m *Exchange) String() string { return proto.CompactTextString(m) }
示例#6
0
func (m *Hello) String() string { return proto.CompactTextString(m) }
示例#7
0
func (m *PBWrapper) String() string { return proto.CompactTextString(m) }
示例#8
0
func (m *PBPrivateKey) String() string { return proto.CompactTextString(m) }
示例#9
0
func (m *PBPublicKey) String() string { return proto.CompactTextString(m) }