func nodeListString(n []*node) string {
	b := new(bytes.Buffer)
	e := text.NewEncoder(b)
	b.WriteByte('[')
	for i, nn := range n {
		if i > 0 {
			b.WriteByte(' ')
		}
		e.Encode(0xe682ab4cf923a417, nn.Struct)
	}
	b.WriteByte(']')
	return b.String()
}
Example #2
0
func formatMsg(w io.Writer, m rpccapnp.Message) {
	text.NewEncoder(w).Encode(0x91b79f1f808db032, m.Struct)
}