1
0
mirror of https://github.com/golang/go synced 2024-11-26 12:48:11 -07:00
go/src/net/netip
Tobias Klauser dc98ccd836 net/netip: use slice-to-array conversions
Resend of CL 432735 (with one additional conversion that the original CL
missed) after it broke the longtest builder on x/tools and was reverted
in CL 433478. Now that x/tools/go/ssa has support for this, the longtest
x/tools build passes as well.

Use slice-to-array conversions in AddrFromSlice and
(*Addr).UnmarshalBinary. This allows using AddrFrom16 and drop the
redundant ipv6Slice helper.

For #46505

Change-Id: I4d8084b7a97f162e4f7d685c86aac56d960ff693
Reviewed-on: https://go-review.googlesource.com/c/go/+/448396
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-11-08 03:03:40 +00:00
..
export_test.go
fuzz_test.go
inlining_test.go net/netip: remove unused unexported functions and methods 2022-11-07 21:28:44 +00:00
leaf_alts.go
netip_pkg_test.go
netip_test.go net/netip: add IPv6LinkLocalAllRouters and IPv6Loopback 2022-10-21 20:14:41 +00:00
netip.go net/netip: use slice-to-array conversions 2022-11-08 03:03:40 +00:00
slow_test.go
uint128_test.go
uint128.go net/netip: remove unused unexported functions and methods 2022-11-07 21:28:44 +00:00