pulumi/sdk/go/common/util
Abhinav Gupta 1158d4acee
all: Drop ioutil
Stop using io/ioutil across the entire repository.
The io/ioutil package was deprecated in Go 1.16 (2021-02)
with replacements provided in other packages.
Specifically:

    ioutil.Discard   => io.Discard
    ioutil.NopCloser => io.NopCloser
    ioutil.ReadAll   => io.ReadAll
    ioutil.ReadFile  => os.ReadFile
    ioutil.TempDir   => os.MkdirTemp
    ioutil.TempFile  => os.CreateTemp
    ioutil.WriteFile => os.WriteFile

This change switches all of these entities
across the repository.

Following this change,
the only references to ioutil are in schema files:

    % rg -l ioutil
    pkg/codegen/testing/test/testdata/aws-4.26.0.json
    pkg/codegen/testing/test/testdata/aws-4.36.0.json
    pkg/codegen/testing/test/testdata/aws-4.37.1.json
    pkg/codegen/testing/test/testdata/aws-5.4.0.json
    pkg/codegen/testing/test/testdata/aws-5.16.2.json

The bulk of this change was generated automatically
with manual touch ups afterwards.
2023-01-06 16:35:14 -08:00
..
archive all: Drop ioutil 2023-01-06 16:35:14 -08:00
buildutil sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
ciutil chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
cmdutil Move over some env vars to the new lib 2022-12-15 15:46:39 +01:00
contract [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
deepcopy ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
env feat(sdk/nodejs): delegates alias computation to the engine 2022-12-15 17:23:31 -05:00
executable ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
fsutil all: Drop ioutil 2023-01-06 16:35:14 -08:00
gitutil cli: Fix issue with pulumi new and unstaged files 2022-10-27 22:39:31 +01:00
goversion ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
httputil all: Drop ioutil 2023-01-06 16:35:14 -08:00
logging ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
mapper Fix mapper panic on map[string]*string handling 2022-12-06 11:03:15 -08:00
result ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
retry move pkg/util/retry -> sdk/go/common/util/retry 2020-03-18 15:47:01 -07:00
rpcutil all: Drop ioutil 2023-01-06 16:35:14 -08:00
yamlutil yamlutil: Export 2-space encoder and refactor encoding package to use 2022-12-10 14:26:14 -08:00