Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidPointerOfStruct = errors.New("v must be a pointer of struct")
)
Functions ¶
This section is empty.
Types ¶
type DecodeError ¶ added in v1.3.2
type DecodeError struct {
// contains filtered or unexported fields
}
func (*DecodeError) Error ¶ added in v1.3.2
func (e *DecodeError) Error() string
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder decodes values from row.
func NewDecoder ¶
NewDecoder return a new decoder that read from row.
func (*Decoder) Decode ¶
Decode decodes given row (string slice) to struct of column.
Supported Go data types are: - string - int, float family - Boolean - the type implements encoding.TextUnmarshaler - slices
- the element type must be Decode() support type
- element will split by "," from given string
- time.Time - embedded struct - sub struct
Click to show internal directories.
Click to hide internal directories.