1
0
mirror of https://github.com/golang/go synced 2024-11-26 08:27:56 -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 net/netip: add a fuzz test 2021-12-20 23:46:23 +00:00
inlining_test.go net/netip: remove unused unexported functions and methods 2022-11-07 21:28:44 +00:00
leaf_alts.go net/netip: add missing encoding.BinaryUnmarshaler to AddrPort and Prefix 2021-11-05 22:27:21 +00:00
netip_pkg_test.go net/netip: return an error from ParsePrefix with IPv6 zone input 2022-03-29 15:43:06 +00:00
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 all: gofmt main repo 2022-04-11 16:34:30 +00:00
uint128_test.go
uint128.go net/netip: remove unused unexported functions and methods 2022-11-07 21:28:44 +00:00