See https://github.com/tgulacsi/go/blob/master/iohlp/slurp.go
But mainly I use it at https://github.com/tgulacsi/go/blob/master/i18nmail/walk.go#L72 so all I want is an io.Reader, thus your example of golang.org/x/exp/mmap returning an io.ReaderAt may be enough, thanks! Brian Candler a következőt írta (2021. március 26., péntek, 13:01:59 UTC+1): > Is it even necessary? Doesn't Go take care of unmapping the mmap'd region > when the object is garbage collected? > https://github.com/golang/exp/blob/85be41e4509f/mmap/mmap_unix.go#L115 > > If that's not true, can you show some more of your code to explain the > problem? > -- 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/77bfa9d9-c6cc-4293-9cc5-f51be76947d0n%40googlegroups.com.