Write provides a function to write to an io.Writer.
(w io.Writer, opts ...Options)
| 107 | |
| 108 | // Write provides a function to write to an io.Writer. |
| 109 | func (f *File) Write(w io.Writer, opts ...Options) error { |
| 110 | _, err := f.WriteTo(w, opts...) |
| 111 | return err |
| 112 | } |
| 113 | |
| 114 | // WriteTo implements io.WriterTo to write the file. |
| 115 | func (f *File) WriteTo(w io.Writer, opts ...Options) (int64, error) { |