ddns-updater icon indicating copy to clipboard operation
ddns-updater copied to clipboard

Maintenance: use `net/netip` when upgrade to Go 1.18 is possible

Open qdm12 opened this issue 3 years ago • 2 comments

  1. What's the feature?

Use https://pkg.go.dev/net/netip which is more robust and better than the current net.IP addresses

  1. Extra information?

This needs Go 1.18 which doesn't work with golangci-lint currently, so we'll have to wait.

qdm12 avatar Mar 09 '22 21:03 qdm12

golangci-lint supports go 1.18 since v1.45.0, although some linters that do not support go 1.18 may be disabled. For details, see https://github.com/golangci/golangci-lint/issues/2649.

rgm3 avatar Apr 30 '22 07:04 rgm3

Yes that's rather unfortunate a bunch of linters are not compatible. Thanks for mentioning this. Since this issue is not really urgent, I'lll probably delay the upgrade to Go 1.18 until all golangci-lint linters are working again.

qdm12 avatar Apr 30 '22 08:04 qdm12

Done in 9a4a268926c73f360578cf4a2a9d75a156541250

qdm12 avatar Jun 12 '23 09:06 qdm12