From e5b9c1068913c09f90ca4d7f8b0d97903f37fc1c Mon Sep 17 00:00:00 2001 From: Emmanuel T Odeke Date: Wed, 5 Feb 2020 11:36:00 -0800 Subject: [PATCH] doc/go1.14: document io/ioutil.TempDir's predictable prefix+suffix Documents io/ioutil.TempDir's new ability to create predictable prefixes and suffixes, derived from the argument 'pattern', separated by the last '*' in it. References: CL 198488 Updates #36878 Change-Id: I92c52fcc7d480ce74746e99e6e85a04efb87294f Reviewed-on: https://go-review.googlesource.com/c/go/+/217780 Reviewed-by: Ian Lance Taylor --- doc/go1.14.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/go1.14.html b/doc/go1.14.html index c863da42fa..35f9955d2a 100644 --- a/doc/go1.14.html +++ b/doc/go1.14.html @@ -569,6 +569,16 @@ appropriately.) +
io/ioutil
+
+

+ TempDir can now create directories + whose names have predictable prefixes and suffixes. As with TempFile, if the pattern + contains a '*', the random string replaces the last '*'. +

+
+
+
log

-- 2.48.1