Re: [go-nuts] Re: net.ParseIP unable to parse some types of ipv6 addresses

2020-05-01 Thread andrey mirtchovski
thanks. that ought to do it.

On Fri, May 1, 2020 at 11:16 AM Brian Candler  wrote:
>
> parseIP returns a net.IP which is just a slice of bytes without the zone.
>
> However, type net.IPAddr includes the zone.  Looks like net.ResolveIPAddr 
> will do the job:
>
> https://play.golang.org/p/7p1XXIrVGI0
>
> --
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/0168d004-5c54-4430-8c09-1a8a8d7ea736%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAK4xykXFVkrDe1w3T_24kyC9-Zd4DheJo6rpP7osemeRWSk%3Dcw%40mail.gmail.com.


[go-nuts] Re: net.ParseIP unable to parse some types of ipv6 addresses

2020-05-01 Thread Brian Candler
parseIP returns a net.IP which is just a slice of bytes without the zone.

However, type net.IPAddr  includes the 
zone.  Looks like net.ResolveIPAddr will do the job:

https://play.golang.org/p/7p1XXIrVGI0

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/0168d004-5c54-4430-8c09-1a8a8d7ea736%40googlegroups.com.