func IP6FromNetaddr(ip netaddr.IP) IP6 {
	if !ip.Is6() {
		panic(fmt.Sprintf("IP6FromNetaddr called with non-v6 addr %q", ip))
	}
	return IP6(ip.As16())
}
// IP6FromNetaddr converts a netaddr.IP to an IP6. Panics if !ip.Is6.
IP6FromNetaddr converts a netaddr.IP to an IP6. Panics if !ip.Is6.
// IP6FromNetaddr converts a netaddr . IP to an IP6 . Panics if !ip . Is6 .
func IP6FromNetaddr(ip netaddr.IP) IP6 {
	if !ip.Is6() {
		panic(fmt.Sprintf("IP6FromNetaddr called with non-v6 addr %q", ip))
	}
	return IP6(ip.As16())
}
func IP6FromNetaddr ( ip netaddr . IP ) IP6 { if ! ip . Is6 ( ) { panic ( fmt . Sprintf ( " " , ip ) ) } return IP6 ( ip . As16 ( ) ) }
IP6FromNetaddr converts a netaddr.IP to an IP6.
IP6FromNetaddr converts a netaddr . IP to an IP6 .