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

csv output #80

Closed
alexvasseur opened this issue Oct 17, 2017 · 3 comments
Closed

csv output #80

alexvasseur opened this issue Oct 17, 2017 · 3 comments

Comments

@alexvasseur
Copy link

Is there a way to write csv as output file ?

@olekukonko
Copy link
Owner

You can write to any io.writer

table := tablewriter.NewWriter(csv-file-writer)

@greut
Copy link

greut commented May 18, 2018

@avasseur-pivotal https://golang.org/pkg/encoding/csv/

@displague
Copy link

This fails:

var _ io.Writer = (*csv.Writer)(nil)

It seems csv.NewWriter(os.Stdout) does not implement io.Writer. It writes strings instead of the needed bytes.

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

4 participants