Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(proto.NewBinary), fx.Provide(proto.NewText), fx.Provide(proto.NewJSON), fx.Provide(json.NewEncoder), fx.Provide(toml.NewEncoder), fx.Provide(yaml.NewEncoder), fx.Provide(gob.NewEncoder), fx.Provide(bytes.NewEncoder), fx.Provide(NewMap), )
Module for fx.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶ added in v1.282.0
type Encoder interface {
// Encode any to a writer.
Encode(w io.Writer, e any) error
// Decode any from a reader.
Decode(r io.Reader, e any) error
}
Encoder allows different types of encoding/decoding.
Click to show internal directories.
Click to hide internal directories.