Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Marshaler ¶
type Marshaler struct {
Reader *csv.Reader
Lazy bool // if true, marshaler does not exit on first cvs.ParseError but continues and append all errors
// contains filtered or unexported fields
}
Marshaler reads a csv file and unmarshalls it to an endpoint struct.
func NewMarshaler ¶
NewMarshaler returns a new Marshaler
type ParseErrors ¶
type ParseErrors []csv.ParseError
ParseErrors is a slice of csv.ParseError
func (ParseErrors) Error ¶
func (errs ParseErrors) Error() string
Error returns te ParseErrors as string
Click to show internal directories.
Click to hide internal directories.