Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support csv options #3

Closed
imjasonh opened this issue Jul 17, 2014 · 1 comment
Closed

Support csv options #3

imjasonh opened this issue Jul 17, 2014 · 1 comment

Comments

@imjasonh
Copy link
Owner

http://golang.org/pkg/encoding/csv/#Reader and http://golang.org/pkg/encoding/csv/#Writer allow the caller to specify some options, e.g., separator rune, comment rune, trailing comma, etc. Add DecodeOpts and EncodeOpts structs and NewDecoderOpts(r, opts) and NewEncodeOpts(w, opts) methods to specify them.

Also allow callers to specify whether to write the header row and how many lines to skip when reading.

@imjasonh
Copy link
Owner Author

Fixed in 416b788 and 6014af3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant