]> Cypherpunks.ru repositories - gostls13.git/commit
all: update references to symbols moved from os to io/fs
authorRuss Cox <rsc@golang.org>
Tue, 7 Jul 2020 17:49:21 +0000 (13:49 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 20 Oct 2020 02:32:42 +0000 (02:32 +0000)
commit7bb721b9384bdd196befeaed593b185f7f2a5589
tree882f21fc2e1fbba6fb11100e4fd8efc5f973a44d
parentd4da735091986868015369e01c63794af9cc9b84
all: update references to symbols moved from os to io/fs

The old os references are still valid, but update our code
to reflect best practices and get used to the new locations.

Code compiled with the bootstrap toolchain
(cmd/asm, cmd/dist, cmd/compile, debug/elf)
must remain Go 1.4-compatible and is excluded.

For #41190.

Change-Id: I8f9526977867c10a221e2f392f78d7dec073f1bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/243907
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
115 files changed:
src/archive/tar/common.go
src/archive/tar/stat_unix.go
src/archive/tar/tar_test.go
src/archive/zip/reader_test.go
src/archive/zip/struct.go
src/archive/zip/writer_test.go
src/cmd/doc/pkg.go
src/cmd/fix/main.go
src/cmd/go/go_test.go
src/cmd/go/internal/cache/cache.go
src/cmd/go/internal/fsys/fsys.go
src/cmd/go/internal/fsys/fsys_test.go
src/cmd/go/internal/imports/scan.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/lockedfile/internal/filelock/filelock.go
src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go
src/cmd/go/internal/lockedfile/internal/filelock/filelock_other.go
src/cmd/go/internal/lockedfile/internal/filelock/filelock_plan9.go
src/cmd/go/internal/lockedfile/internal/filelock/filelock_unix.go
src/cmd/go/internal/lockedfile/internal/filelock/filelock_windows.go
src/cmd/go/internal/lockedfile/lockedfile.go
src/cmd/go/internal/lockedfile/lockedfile_filelock.go
src/cmd/go/internal/lockedfile/lockedfile_plan9.go
src/cmd/go/internal/modcmd/vendor.go
src/cmd/go/internal/modcmd/verify.go
src/cmd/go/internal/modfetch/cache.go
src/cmd/go/internal/modfetch/codehost/codehost.go
src/cmd/go/internal/modfetch/codehost/git.go
src/cmd/go/internal/modfetch/codehost/git_test.go
src/cmd/go/internal/modfetch/codehost/vcs.go
src/cmd/go/internal/modfetch/coderepo.go
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/internal/modfetch/proxy.go
src/cmd/go/internal/modfetch/repo.go
src/cmd/go/internal/modfetch/sumdb.go
src/cmd/go/internal/modload/import.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/modload/query.go
src/cmd/go/internal/modload/search.go
src/cmd/go/internal/modload/stat_openfile.go
src/cmd/go/internal/modload/stat_unix.go
src/cmd/go/internal/modload/stat_windows.go
src/cmd/go/internal/modload/vendor.go
src/cmd/go/internal/renameio/renameio.go
src/cmd/go/internal/renameio/umask_test.go
src/cmd/go/internal/search/search.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/vcs/vcs.go
src/cmd/go/internal/version/version.go
src/cmd/go/internal/web/api.go
src/cmd/go/internal/web/file_test.go
src/cmd/go/internal/work/build_test.go
src/cmd/go/internal/work/exec.go
src/cmd/go/proxy_test.go
src/cmd/go/script_test.go
src/cmd/go/testdata/addmod.go
src/cmd/go/testdata/savedir.go
src/cmd/gofmt/gofmt.go
src/cmd/gofmt/long_test.go
src/cmd/internal/buildid/buildid.go
src/cmd/internal/buildid/note.go
src/cmd/internal/moddeps/moddeps_test.go
src/cmd/pack/pack.go
src/cmd/pack/pack_test.go
src/compress/gzip/issue14937_test.go
src/crypto/rand/eagain.go
src/crypto/x509/root_unix.go
src/errors/errors.go
src/errors/wrap.go
src/errors/wrap_test.go
src/go/build/build.go
src/go/build/deps_test.go
src/go/doc/doc_test.go
src/go/doc/headscan.go
src/go/parser/interface.go
src/go/parser/parser_test.go
src/index/suffixarray/suffixarray_test.go
src/internal/poll/error_test.go
src/internal/reflectlite/reflect_mirror_test.go
src/io/ioutil/ioutil.go
src/io/ioutil/tempfile_test.go
src/net/conf_test.go
src/net/dnsconfig_unix_test.go
src/net/error_test.go
src/net/http/example_filesystem_test.go
src/net/http/fs.go
src/net/http/fs_test.go
src/net/ipsock_plan9.go
src/os/error_test.go
src/os/error_unix_test.go
src/os/error_windows_test.go
src/os/example_test.go
src/os/exec/exec_plan9.go
src/os/exec/exec_unix.go
src/os/exec/exec_windows.go
src/os/exec/lp_plan9.go
src/os/exec/lp_unix.go
src/os/exec/lp_windows.go
src/os/os_test.go
src/os/os_windows_test.go
src/os/pipe_test.go
src/os/removeall_test.go
src/os/signal/signal_cgo_test.go
src/os/stat_test.go
src/path/filepath/example_unix_walk_test.go
src/path/filepath/path.go
src/path/filepath/path_test.go
src/path/filepath/path_windows_test.go
src/path/filepath/symlink.go
src/runtime/testdata/testprogcgo/exec.go
src/syscall/syscall_js.go
src/syscall/syscall_linux_test.go
src/syscall/syscall_plan9.go
src/syscall/syscall_unix.go
src/syscall/syscall_windows.go