aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel T Odeke <emmanuel@orijtech.com>2020-02-05 11:36:00 -0800
committerEmmanuel Odeke <emm.odeke@gmail.com>2020-02-05 22:19:16 +0000
commite5b9c1068913c09f90ca4d7f8b0d97903f37fc1c (patch)
tree1e6c16a57468fd72ecb2a02adc7018ba996781bd
parent7a36fa400286ca51192a7661a7ffbf9a39c396b3 (diff)
downloadgo-e5b9c1068913c09f90ca4d7f8b0d97903f37fc1c.tar.gz
go-e5b9c1068913c09f90ca4d7f8b0d97903f37fc1c.zip
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 <iant@golang.org>
-rw-r--r--doc/go1.14.html10
1 files changed, 10 insertions, 0 deletions
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.)
</dd>
</dl><!-- go/build -->
+<dl id="io/ioutil"><dt><a href="/pkg/io/ioutil/">io/ioutil</a></dt>
+ <dd>
+ <p><!-- CL 198488 -->
+ <a href="/pkg/io/ioutil/#TempDir"><code>TempDir</code></a> 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 '*'.
+ </p>
+ </dd>
+</dl>
+
<dl id="log"><dt><a href="/pkg/log/">log</a></dt>
<dd>
<p><!-- CL 186182 -->