From d5d55fd86981f66fcf8965b6e7dafbfafd2c90a5 Mon Sep 17 00:00:00 2001 From: Hiromu OCHIAI Date: Sun, 18 Jun 2023 15:37:34 +0900 Subject: [PATCH] Update README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index dc66c4e..1cc8fc8 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,15 @@ type Options struct { // If zero, the internal default buffer of 32KB is used. // See https://golang.org/pkg/io/#CopyBuffer for more information. CopyBufferSize uint + + // If you want to add some limitation on reading src file, + // you can wrap the src and provide new reader, + // such as `RateLimitReader` in the test case. + WrapReader func(src io.Reader) io.Reader + + // If given, copy.Copy refers to this fs.FS instead of the OS filesystem. + // e.g., You can use embed.FS to copy files from embedded filesystem. + FS fs.FS } ```