Skip to content

Commit 65b8456

Browse files
Update README.md
1 parent 4d003e8 commit 65b8456

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
bettercsv [![Build Status](https://travis-ci.org/tinygrasshopper/bettercsv.svg)](https://travis-ci.org/tinygrasshopper/bettercsv)
22
=========
33

4-
A better csv implementation for golang. Forked from the 'encoding/csv' golang(1.3.3) csv implementation to provide missing functionality.
4+
A drop in replacement for the stdlib csv implementation for golang, to make it support any [dsv](http://en.wikipedia.org/wiki/Delimiter-separated_values). Fully backward compatible while providing more features.
55

6-
# Installation
6+
Forked from the 'encoding/csv' golang(1.3.3) csv implementation.
7+
8+
# Usage
9+
In addition to [encoding/csv](http://golang.org/pkg/encoding/csv/) functionality, you can specify custom quoting characters for reading and writing.
10+
11+
## Example
12+
```
13+
fileReader, _ = os.Open("/tmp/wierd_dsv.txt")
14+
csvReader := bettercsv.NewReader(fileReader)
15+
csvReader.Comma = ';'
16+
csvReader.Quote = '|'
17+
content := csvReader.ReadAll()
18+
```
19+
20+
21+
# Install
722

823
`go get github.com/tinygrasshopper/bettercsv`
924

1025

1126
# Goals
1227
- [x] Custom quote rune while reading
13-
- [ ] Custom quote rune while writing
28+
- [x] Custom quote rune while writing
1429
- [ ] Supporting headers
1530
- [ ] Reading to a map

0 commit comments

Comments
 (0)