Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewProto), fx.Provide(NewJSON), fx.Provide(NewTOML), fx.Provide(NewYAML), fx.Provide(NewMap), )
Module for fx.
Functions ¶
This section is empty.
Types ¶
type Map ¶ added in v1.188.0
type Map struct {
// contains filtered or unexported fields
}
Map of marshaller.
func (*Map) Register ¶ added in v1.188.0
func (f *Map) Register(kind string, m Marshaller)
Register kind and marshaller.
type Marshaller ¶
type Marshaller interface { // Marshal value. Marshal(v any) ([]byte, error) // Unmarshal data to value. Unmarshal(data []byte, v any) error }
Marshaller allows to have different ways to marshal/unmarshal.
Click to show internal directories.
Click to hide internal directories.