https://github.com/elliotchance/csv
Reading and writing CSV files in OK.
https://github.com/elliotchance/csv
ok-package
Last synced: 3 months ago
JSON representation
Reading and writing CSV files in OK.
- Host: GitHub
- URL: https://github.com/elliotchance/csv
- Owner: elliotchance
- License: mit
- Created: 2020-11-14T17:58:31.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-16T06:43:17.000Z (almost 5 years ago)
- Last Synced: 2025-02-09T17:18:03.403Z (8 months ago)
- Topics: ok-package
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# csv
- [func Read(f os.File) []string](#Read)
- [func Write(f os.File, fields []string)](#Write)## Read
```
func Read(f os.File) []string
```Read fetches the next CSV line from the file. If there is no more data to be
read the returned array will have zero elements.## Write
```
func Write(f os.File, fields []string)
```Write will append a new record to the file. The fields must contain at least
one element.