Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilPointer = errors.New("decode: unmarshal target object is nil")
ErrNilPointer is returned when the target object is nil.
View Source
var ErrNotAPointer = errors.New("decode: unmarshal target object is not a pointer")
ErrNotAPointer is returned when the target object is not a pointer.
Functions ¶
Types ¶
type Decoder ¶
type Decoder interface {
Decode(interface{}) error
}
Decoder ...
func NewDecoder ¶
NewDecoder builds a new decoder using a bufio.Scanner for the given input io.Reader.
type UnmarshalTypeError ¶
type UnmarshalTypeError struct { Value string // raw value Type reflect.Type // type of Go value it could not be assigned to Struct string // name of the struct type containing the field Field string // name of the field holding the Go value Cause error // original error }
UnmarshalTypeError represents an unmarshal malfunction
func (*UnmarshalTypeError) Error ¶
func (e *UnmarshalTypeError) Error() string
Error converts details of an UnmarshalTypeError into a meaningful string
Click to show internal directories.
Click to hide internal directories.