Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error describes an error that occured when parsing a dbf record.
type Option ¶
type Option func(*config)
Option funcs can be passed to Scanner.Scan().
func CharacterDecoder ¶
CharacterDecoder sets the encoding of character field values. By default, ASCII is assumed.
func FilterFields ¶
FilterFields allows filtering by field name. If this option is used, only these fields will be returned in the Record. Without this option, all available fields are returned.
type Record ¶
type Record struct {
// contains filtered or unexported fields
}
Record wraps a dBase level-specific record.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner parses a dbf file.
func NewScanner ¶
NewScanner creates a new Scanner for the supplied source.
func (*Scanner) Err ¶
Err returns the first error encountered when parsing records. It should be called after calling the Record method for the last time.
func (*Scanner) Header ¶
Header invokes the Header method for the appropriate dbase version scanner. A type assertion can be used to access information specific to the version.
func (*Scanner) Record ¶
Record returns each record found in the dbf file. nil is returned once the last record has been read, or an error occurs - the Err method should be used to check for an error at this point.