parseIP returns a net.IP which is just a slice of bytes without the zone. However, type net.IPAddr <https://golang.org/pkg/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.