Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotPointerToStruct = errors.New("val must be a pointer to a struct")
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct { Runner *interp.Runner // Enable distro overrides (true by default) Overrides bool // Enable using like distros for overrides LikeDistros bool // contains filtered or unexported fields }
Decoder provides methods for decoding variable values
func (*Decoder) DecodeVar ¶
DecodeVar decodes a variable to val using reflection. Structs should use the "sh" struct tag.
func (*Decoder) DecodeVars ¶
DecodeVars decodes all variables to val using reflection. Structs should use the "sh" struct tag.
type InvalidTypeError ¶
type InvalidTypeError struct {
// contains filtered or unexported fields
}
func (InvalidTypeError) Error ¶
func (ite InvalidTypeError) Error() string
type ScriptFunc ¶
type ScriptFunc func(ctx context.Context, opts ...interp.RunnerOption) error
type VarNotFoundError ¶
type VarNotFoundError struct {
// contains filtered or unexported fields
}
func (VarNotFoundError) Error ¶
func (nfe VarNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.