On Mon, Feb 8, 2021 at 8:40 PM Sebastien Binet <s...@sbinet.org> wrote:
> SGTM, and make Source implement io.Reader or io.WriterTo. > > or directly return an io.Reader (either from the underlying []byte, or as > an io.SectionReader - wrapping the io.ReaderAt+size) ? On further thought, since a Source (and its []byte or io.ReaderAt) are stateless (safe to use concurrently) but io.Reader and io.WriterTo are stateful (e.g. the file's current position), I'll go with your original suggestion for a Font method that takes an io.Writer. I have sent out https://go-review.googlesource.com/c/image/+/291149 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOeFMNUxR0563n-E9_BvCAj4H2y-GTX496TJ2JnGT2ED51%3DYTA%40mail.gmail.com.