I'm working on a project where I need to expand IPv6 addresses. Is there an inbuilt function in Go?
What I'm currently doing is
ipv6 := "fe80:01::af0"
addr := net.ParseIP(ipv6)
fmt.Println(addr.String())
but this still prints
fe80:01::af0
What I actually need is
fe80:0001:0000:0000:0000:0000:0000:0af0