package
Version:
v0.1.123
Opens a new window with list of versions in this module.
Published: Aug 30, 2016
License: GPL-3.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
ErrIncompleteLine = errors.New("incomplete KBART line")
ErrIncompleteEmbargo = errors.New("incomplete embargo")
ErrInvalidEmbargo = errors.New("invalid embargo")
ErrMissingIdentifiers = errors.New("missing identifiers")
)
type Reader struct {
SkipFirstRow bool
SkipMissingIdentifiers bool
SkipIncompleteLines bool
SkipInvalidEmbargo bool
}
Reader reads tab-separated KBART. The encoding/csv package did not like
that particular format so we use a simple bufio.Reader for now.
NewReader creates a new KBART reader.
Read reads a single line. Returns all columns, a parsed entry and error.
ReadAll loads entries from a reader.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.