diff options
| author | Bartosz Janda <bartosz.janda@gmail.com> | 2022-03-20 13:11:41 +0100 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2022-05-06 22:50:29 -0400 |
| commit | 2f294d7884667800579e3ac3a16241e2df8698bb (patch) | |
| tree | 9b35738bd60d1db881f327e878050731f1f87344 /docs-src/content/functions | |
| parent | c3609dd368a2af1a40005eacfbddc40f210b302f (diff) | |
Add support for IPv6 for `net.CidrNetmask`. Add support for `net/netip` result types
Diffstat (limited to 'docs-src/content/functions')
| -rw-r--r-- | docs-src/content/functions/net.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs-src/content/functions/net.yml b/docs-src/content/functions/net.yml index bc24f62b..ffc7f661 100644 --- a/docs-src/content/functions/net.yml +++ b/docs-src/content/functions/net.yml @@ -216,7 +216,7 @@ funcs: 10.12.113.12 - name: net.CidrNetmask description: | - The result is a subnet address formatted in the conventional dotted-decimal IPv4 address syntax, as expected by some software. + The result is a subnet address formatted in the conventional dotted-decimal IPv4 address syntax or hexadecimal IPv6 address syntax, as expected by some software. Any of `net.IP`'s methods may be called on the resulting value. See [the docs](https://pkg.go.dev/net) for details. @@ -229,6 +229,8 @@ funcs: - | $ gomplate -i '{{ net.CidrNetmask "10.12.127.0/20" }}' 255.255.240.0 + $ gomplate -i '{{ net.CidrNetmask "fd00:fd12:3456:7890:00a2::/72" }}' + ffff:ffff:ffff:ffff:ff00:: - name: net.CidrSubnets description: | Calculates a subnet address within given IP network address prefix. |
