]> Cypherpunks repositories - gostls13.git/commit
all: replace calls to errors.As with errors.AsType
authorJulien Cretel <jub0bsinthecloud@gmail.com>
Wed, 1 Oct 2025 20:08:18 +0000 (20:08 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 13 Oct 2025 17:12:48 +0000 (10:12 -0700)
commit6bcd97d9f4386528aa85eb3cc27da0ed902de870
tree54acec806440b95e7afc493d42b0b095fdaee1a5
parent1cd71689f2ed8f07031a0cc58fc3586ca501839f
all: replace calls to errors.As with errors.AsType

This change replaces most occurrences (in code as well as in comments) of
errors.As with errors.AsType. It leaves the errors package and vendored
code untouched.

Change-Id: I3bde73f318a0b408bdb8f5a251494af15a13118a
GitHub-Last-Rev: 8aaaa36a5a12d2a6a90c6d51680464e1a3115139
GitHub-Pull-Request: golang/go#75698
Reviewed-on: https://go-review.googlesource.com/c/go/+/708495
Auto-Submit: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
58 files changed:
src/cmd/compile/internal/types2/api_test.go
src/cmd/go/internal/base/path.go
src/cmd/go/internal/doc/pkgsite.go
src/cmd/go/internal/fmtcmd/fmt.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/modget/get.go
src/cmd/go/internal/modget/query.go
src/cmd/go/internal/modload/build.go
src/cmd/go/internal/modload/buildlist.go
src/cmd/go/internal/modload/edit.go
src/cmd/go/internal/modload/import.go
src/cmd/go/internal/modload/list.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/modload/modfile.go
src/cmd/go/internal/modload/query.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/test/testflag.go
src/cmd/go/internal/vcweb/vcstest/vcstest_test.go
src/cmd/go/internal/vcweb/vcweb.go
src/cmd/go/internal/version/version.go
src/cmd/go/internal/vet/vetflag.go
src/cmd/go/internal/work/build.go
src/cmd/go/internal/work/exec.go
src/cmd/internal/bootstrap_test/experiment_toolid_test.go
src/cmd/internal/robustio/robustio_darwin.go
src/cmd/internal/robustio/robustio_flaky.go
src/cmd/internal/robustio/robustio_windows.go
src/cmd/internal/script/engine.go
src/cmd/internal/script/scripttest/scripttest.go
src/cmd/link/link_test.go
src/crypto/tls/conn.go
src/crypto/tls/handshake_server.go
src/crypto/tls/handshake_server_test.go
src/crypto/tls/quic.go
src/crypto/tls/quic_test.go
src/debug/buildinfo/buildinfo.go
src/encoding/json/jsontext/coder_test.go
src/encoding/json/jsontext/fuzz_test.go
src/encoding/json/jsontext/state.go
src/encoding/json/v2/errors.go
src/encoding/json/v2/example_test.go
src/go/types/api_test.go
src/internal/runtime/wasitest/testdata/tcpecho.go
src/internal/testenv/testenv_unix.go
src/io/fs/readdir_test.go
src/log/log_test.go
src/log/slog/logger_test.go
src/net/dnsclient_unix.go
src/net/dnsclient_unix_test.go
src/net/http/h2_error_test.go
src/net/lookup_test.go
src/os/exec/exec_test.go
src/os/os_test.go
src/runtime/pprof/proto_windows.go
src/testing/fstest/testfs.go
src/testing/fstest/testfs_test.go
src/text/template/exec_test.go
src/text/template/funcs.go