- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleIP_String (0.24 sec)
-
src/net/example_test.go
// This mask corresponds to a /32 subnet for IPv6. ipv6Mask := net.CIDRMask(32, 128) fmt.Println(ipv6Addr.Mask(ipv6Mask)) // Output: // 192.0.2.0 // 2001:db8:: } func ExampleIP_String() { ipv6 := net.IP{0xfc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} ipv4 := net.IPv4(10, 255, 0, 0) fmt.Println(ipv6.String()) fmt.Println(ipv4.String()) // Output: // fc00::
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 13 16:36:59 UTC 2021 - 8.5K bytes - Viewed (0)