An open API service indexing awesome lists of open source software.

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.

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.