]> Cypherpunks repositories - gostls13.git/commit
net/netip: use const for max address length
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Sat, 14 Sep 2024 10:09:58 +0000 (10:09 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 18 Sep 2024 13:16:39 +0000 (13:16 +0000)
commitd682a9dfbe14d86c0d4c5b7841bfd2509cdd478f
treed214bd1742853ba9d4058e1d5fb6f9fbc75ea7fc
parentb28b263a91e4fd4af6900e045cd35c2ed1d6e3ff
net/netip: use const for max address length

Makes it consistent with other code in net/netip, also constants
are visible through LSP hover, which makes it easier to see the size.

Change-Id: I3d02c860ac3c61cc037eaca5418297f78698c3f8
GitHub-Last-Rev: 785a8d58c372f5e1faa2e43dd1991d7040e36603
GitHub-Pull-Request: golang/go#69468
Reviewed-on: https://go-review.googlesource.com/c/go/+/613356
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/net/netip/netip.go