Documentation
¶
Index ¶
- func Init(registry *xform.Registry)
- func NewBoolTransformer(ctx context.Context, config tags.Values, destType reflect.Type, ...) (xform.Transformer, error)
- func NewIntTransformer(ctx context.Context, config tags.Values, destType reflect.Type, ...) (xform.Transformer, error)
- func NewStringTransformer(ctx context.Context, config tags.Values, destType reflect.Type, ...) (xform.Transformer, error)
- type BoolTransformer
- type IntTransformer
- type StringTransformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBoolTransformer ¶
func NewBoolTransformer(ctx context.Context, config tags.Values, destType reflect.Type, embedFS *embed.FS) (xform.Transformer, error)
NewBoolTransformer creates a new bool transformer
Types ¶
type BoolTransformer ¶
type BoolTransformer struct {
xform.TransformerBase
}
BoolTransformer converts compatible values to bool
type IntTransformer ¶
type IntTransformer struct {
xform.TransformerBase
}
IntTransformer converts compatible values to int
type StringTransformer ¶
type StringTransformer struct {
xform.TransformerBase
}
StringTransformer converts any value to a string
Click to show internal directories.
Click to hide internal directories.