struct Reader
pub struct Reader {
pub data string
pub pos int
pub comma int
pub comment int
pub lazy_quotes bool
pub sticky string
pub fields_per_record int
pub trim_leading_space bool
pub learned int
}Purpose
CSV reader/writer aligned with `encoding/csv` (RFC4180 subset). Operates on owning strings (no io.Reader struct@ values). Errors never << a partial record. Default comma is ','; comment line support via `comment` rune (0 = off). Writes use '\n' (not CRLF).
Parameters
datastring- data
posint- field (int)
commaint- field (int)
commentint- field (int)
lazy_quotesbool- field (bool)
stickystring- field (string)
fields_per_recordint- field (int)
trim_leading_spacebool- field (bool)
learnedint- field (int)