From 3581251d383af86c19b0deacb23952e9d061ee31 Mon Sep 17 00:00:00 2001 From: Chad Robinson Date: Sat, 11 May 2019 18:26:43 -0700 Subject: [PATCH] Add IPToARPA() functions to examples --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7247f50..9b0765b 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ func main() { fmt.Println(iplib.IP4ToUint32(ipa)) // 3232235777 ipd := iplib.Uint32ToIP4(iplib.IP4ToUint32(ipa)+20) // ipd is 192.168.1.21 + fmt.Println(iplib.IP4ToARPA(ipa)) // 1.1.168.192.in-addr.arpa } ``` @@ -116,6 +117,7 @@ func main() { ipd := iplib.IncrementIP6By(ipa, m) // ipd is 2001:db8::1:0:0 fmt.Println(iplib.DeltaIP6(ipb, ipd)) // 4294967274 + fmt.Println(iplib.IP6ToARPA(ipa)) // 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa } ```