Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder is a streaming encoder for base64 strings. It must be initialized with Init.
The code has been adapted from the standard library encoder that is returned by base64.NewEncoder. The main differences are that Init allows for an Encoder value to be initialized directly and that it writes to an internal strings.Builder instead of an io.Writer. Both allow streaming encoding without extra allocations. Writes to a strings.Builder never fail, so error handling has been removed for simplification.
Click to show internal directories.
Click to hide internal directories.