Documentation ¶
Index ¶
- Variables
- func Deref(t reflect.Type) reflect.Type
- func Repr(v interface{}) string
- func UnmarshalJsonBytes(content []byte, v interface{}) error
- func UnmarshalJsonReader(reader io.Reader, v interface{}) error
- func UnmarshalKey(m map[string]interface{}, v interface{}) error
- func UnmarshalYamlBytes(content []byte, v interface{}) error
- func UnmarshalYamlReader(reader io.Reader, v interface{}) error
- func ValidatePtr(v *reflect.Value) error
- type MapValuer
- type UnmarshalOption
- type Unmarshaler
- type Valuer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedType = errors.New("only map-like configs are suported")
)
Functions ¶
func UnmarshalJsonBytes ¶
func UnmarshalJsonReader ¶
func UnmarshalKey ¶
func UnmarshalYamlBytes ¶
func UnmarshalYamlReader ¶
func ValidatePtr ¶
Types ¶
type UnmarshalOption ¶
type UnmarshalOption func(*unmarshalOptions)
func WithStringValues ¶
func WithStringValues() UnmarshalOption
type Unmarshaler ¶
type Unmarshaler struct {
// contains filtered or unexported fields
}
func NewUnmarshaler ¶
func NewUnmarshaler(key string, opts ...UnmarshalOption) *Unmarshaler
func (*Unmarshaler) Unmarshal ¶
func (u *Unmarshaler) Unmarshal(m map[string]interface{}, v interface{}) error
func (*Unmarshaler) UnmarshalValuer ¶
func (u *Unmarshaler) UnmarshalValuer(m Valuer, v interface{}) error
Click to show internal directories.
Click to hide internal directories.