]> Cypherpunks repositories - gostls13.git/commit
io/ioutil: support predictable prefix,suffix for TempDir with *
authorEmmanuel T Odeke <emmanuel@orijtech.com>
Wed, 2 Oct 2019 20:36:27 +0000 (13:36 -0700)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Wed, 16 Oct 2019 20:38:29 +0000 (20:38 +0000)
commit2718789bc7937c58a7a65e53d9cc941b04682f99
tree708b409bb09ab964bda09f604e9309f7682437e4
parentdad616375f054d0644e006d7794724186d7a6720
io/ioutil: support predictable prefix,suffix for TempDir with *

Allow TempDir to create directories with predictable
prefixes and suffixes, separated by the last "*", for example:
    "prefix*suffix"
will now expand to
    "prefix" + <RANDOM_VALUE> + "suffix"

RELNOTE=yes

Fixes #33805.

Change-Id: I85fa73ae6a684ce820d1810c82a60765eb9c4a42
Reviewed-on: https://go-review.googlesource.com/c/go/+/198488
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/io/ioutil/example_test.go
src/io/ioutil/tempfile.go
src/io/ioutil/tempfile_test.go