github.com/stefantds/csvdecoder
csvdecoder is a tool for parsing and deserializing CSV values into Go objects. It follows the same usage pattern as the Rows scanning using database/sql package. It relies on encoding/csv for the actual csv parsing. csvdecoder allows to iterate through the CSV records (using 'Next') and scan the fields into target variables or fields of variables (using 'Scan'). The methods 'Next' and 'Scan' are not thread-safe and are not expected to be called concurrently. csvdecoder supports converting CSV fields into any of the following types: csvdecoder uses the same terminology as package encoding/csv: A csv file contains zero or more records. Each record contains one or more fields separated by the fields separator (the "comma"). The fields separator character can be configured to be another character than comma. Each record is separated by the newline character. The final record may optionally be followed by a newline character. The behavior of the decoder can be configured by passing one of following options when creating the decoder: See README.md for more info.
proxy.golang.org
v0.2.0
over 5 years ago
3
1
1
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/stefantds/csvdecoder
spec |
| License | MIT |
| Namespace | github.com/stefantds |
| First Release | over 5 years ago |
| Last Synced | 12 days ago |
Repository
| Stars | 9 on GitHub |
| Forks | 0 on GitHub |