pulumi/sdk/go/common
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
..
apitype sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
constant Send update metadata about update plans 2022-10-12 22:55:59 +01:00
diag [color] Use graphemes to measure strings. 2022-11-09 08:23:00 -08:00
display Moving previewDigest to sdk/go/common/display, and exporting it. (#9886) 2022-06-27 09:08:06 -05:00
encoding all: Drop ioutil 2023-01-06 16:35:14 -08:00
env Make pretty-printing conditional 2022-12-22 17:07:55 +01:00
resource all: Drop ioutil 2023-01-06 16:35:14 -08:00
testing all: Drop ioutil 2023-01-06 16:35:14 -08:00
tokens ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
tools Toward replacing MSBuild with make+bash on Windows (#8617) 2022-01-07 22:27:14 -05:00
util all: Drop ioutil 2023-01-06 16:35:14 -08:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace all: Drop ioutil 2023-01-06 16:35:14 -08:00