{"modulePath":"github.com/Ghvstcode/daptin","version":"v0.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package csvmap\n\n## Types\n\n```go\ntype Reader struct {\n\tReader  *csv.Reader\n\tColumns []string\n}\n```\nA Reader reads records from a CSV-encoded file.\n\n```go\nfunc NewReader(r io.Reader) *Reader\n```\nNewReader returns a new Reader that reads from r.\n\n```go\nfunc (r *Reader) Read() (record map[string]string, err error)\n```\nRead wraps csv.Reader.Read, creating a map of column name to field value. If the line has fewer columns than Reader.Columns, the map will not contain keys for these columns; thus we can distinguish between missing columns and columns with empty values. If the line has more columns than Reader.Columns, Reader.Read() ignores them.\n\n```go\nfunc (r *Reader) ReadAll() (records []map[string]string, err error)\n```\nReadAll reads all the remaining records from r. Each record is a map of column name to field value.\n\n```go\nfunc (r *Reader) ReadHeader() (columns []string, err error)\n```\nReadHeader simply wraps csv.Reader.Read().\n\n","path":"github.com/Ghvstcode/daptin/server/csvmap","name":"csvmap","synopsis":"","isRedistributable":true}
