diff --git a/doc/go1.15.html b/doc/go1.15.html index b6cf5bb8f60..6e98826de21 100644 --- a/doc/go1.15.html +++ b/doc/go1.15.html @@ -782,6 +782,20 @@ Do not send CLs removing the interior tags from such phrases. 1.14 with the addition of asynchronous preemption. Now this is handled transparently.
+ +
+ 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)
.
+