Closed leetrout closed 2 months ago
Yes, this is a very good suggestion.
It seems to me this is more idiomatic WriteTo(io.Writer)
than passing a Buffer. What do you think?
var b bytes.Buffer
if err := crx3.Extension("/path/to/extension").WriteTo(b); err != nil {
panic(err)
}
b.WriteTo(someHTTPResponseWriter)
Oh thank you very much!
@mmadfox Would you be open to a PR to add support for packing in memory instead of the filesystem?
I'd like to have something like: