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

Write to buffer #29

Closed
Arteneko opened this issue Dec 26, 2018 · 3 comments
Closed

Write to buffer #29

Arteneko opened this issue Dec 26, 2018 · 3 comments

Comments

@Arteneko
Copy link

I didn't find any direct way, so here's my question: Is there any good way to directly write to a Writer buffer?

The context is to generate a PDF and directly send it through the http.ResponseWriter.

@SebastiaanKlippert
Copy link
Owner

Hello,

This was not possible, but it sound like a nice feature.

If have added a SetOutput method that will accept an io.Writer so you can write directly to a file or http.ResponseWriter.

Let me know if that helps then I will create a new release.

@Arteneko
Copy link
Author

Definitely looks useful

@SebastiaanKlippert
Copy link
Owner

Released in v1.3.0

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

2 participants