]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.14: document io/ioutil.TempDir's predictable prefix+suffix
authorEmmanuel T Odeke <emmanuel@orijtech.com>
Wed, 5 Feb 2020 19:36:00 +0000 (11:36 -0800)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Wed, 5 Feb 2020 22:19:16 +0000 (22:19 +0000)
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>
doc/go1.14.html

index c863da42fa564cc9b06025c2e5db1c5b97d311ec..35f9955d2af379b0801287ea3d3f5ad1d26f1c85 100644 (file)
@@ -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 -->