diff --git a/doc/go1.15.html b/doc/go1.15.html index b6cf5bb8f60b0..6e98826de21a0 100644 --- a/doc/go1.15.html +++ b/doc/go1.15.html @@ -782,6 +782,20 @@
+ The os.File
type now
+ supports a ReadFrom
+ method. This permits the use of the copy_file_range
+ system call on some systems when using
+ io.Copy
to copy data
+ from one os.File
to another. A consequence is that
+ io.CopyBuffer
+ will not always use the provided buffer when copying to a
+ os.File
. If a program wants to force the use of
+ the provided buffer, it can be done by writing
+ io.CopyBuffer(struct{ io.Writer }{dst}, src, buf)
.
+