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 ¶
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) 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.