0 branches
Tree
Top files
Clone with HTTPS:
csv_reader_eol_test.v
encoding.csv: fix reading when there is no line ending at the end of the file (fix #22337) (#22342)
1 year ago
585 bytes
csv_reader_random_access.v
encoding.csv: add support for multithreading to `encoding.csv.RandomAccessReader` (#23677)
1 year ago
15.46 KB
utils_test.v
encoding.csv: add a new utility fn `new_reader_from_file/2` (#20530)
2 years ago
697 bytes
Reader example
import encoding.csv
data := 'x,y\na,b,c\n'
mut parser := csv.new_reader(data)
// read each line
for {
items := parser.read() or { break }
println(items)
}
It prints:
['x', 'y']
['a', 'b', 'c']