diff options
| author | Russ Cox <rsc@golang.org> | 2023-01-16 08:02:34 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-01-19 21:42:39 +0000 |
| commit | 8d71ae8c775129161fda64e77b2de2276e7362e2 (patch) | |
| tree | d4becd65a778b5a33aefb8bf45ba73a423c9934d /src/net/http/clientserver_test.go | |
| parent | c16c2c49e2fa98ae551fc6335215fadd62d33542 (diff) | |
| download | go-8d71ae8c775129161fda64e77b2de2276e7362e2.tar.xz | |
cmd/go/internal/modindex: remove copy of build.Package
modindex defines its own type Package that must be exactly the
same as build.Package (there are conversions between them).
The normal reason to do this is to provide a different method set,
but there aren't any different methods. And if we needed to do that,
we could write
type Package build.Package
instead of repeating the struct definition. Remove the type entirely
in favor of direct use of build.Package.
This makes the modindex package not break when fields are
added to go/build.Package.
Change-Id: I8ffe9f8832bbc62be93a72e6a09d807ddbce216b
Reviewed-on: https://go-review.googlesource.com/c/go/+/462255
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/net/http/clientserver_test.go')
0 files changed, 0 insertions, 0 deletions
