k3d/vendor/inet.af/netaddr
2021-04-30 16:31:06 +02:00
..
.gitignore [FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00
.gitmodules bump deps 2021-04-30 16:31:06 +02:00
AUTHORS [FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00
fuzz.go bump deps 2021-04-30 16:31:06 +02:00
go.mod bump deps 2021-04-30 16:31:06 +02:00
go.sum bump deps 2021-04-30 16:31:06 +02:00
ipset.go [FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00
LICENSE [FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00
mask6.go [FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00
netaddr.go bump deps 2021-04-30 16:31:06 +02:00
README.md [FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00
uint128.go [FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00

netaddr Test Status Go Reference

What

This is a package containing a new IP address type for Go.

See its docs: https://pkg.go.dev/inet.af/netaddr

Status

This package is mature, optimized, and used heavily in production at Tailscale. However, API stability is not yet guaranteed.

netaddr is intended to be a core, low-level package. We take code review, testing, dependencies, and performance seriously, similar to Go's standard library or the golang.org/x repos.

Motivation

See https://tailscale.com/blog/netaddr-new-ip-type-for-go/ for a long blog post about why we made a new IP address package.

Other links:

Testing

In addition to regular Go tests, netaddr uses fuzzing. The corpus is stored separately, in a submodule, to minimize the impact on everyone else.

To use:

$ git submodule update --init
$ go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
$ go-fuzz-build && go-fuzz