Golang sprawdź, czy IP to v6

var ip net.IP

if ip.To4() == nil {
  //Is ipv6
}
Splendid-est Swan