Documentation ¶
Overview ¶
Package text supports marshaling Cap'n Proto messages as text based on a schema.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalList ¶
MarshalList returns the text representation of a struct list.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
An Encoder writes the text format of Cap'n Proto messages to an output stream.
func NewEncoder ¶
NewEncoder returns a new encoder that writes to w.
func (*Encoder) EncodeList ¶
EncodeList writes the text representation of struct list l to the stream.
func (*Encoder) SetIndent ¶
SetIndent sets string to indent each level with. An empty string disables indentation.
func (*Encoder) UseRegistry ¶
UseRegistry changes the registry that the encoder consults for schemas from the default registry.
Click to show internal directories.
Click to hide internal directories.