Answers for "golang check if ip is v6"

Go
0

golang check if ip is v6

var ip net.IP

if ip.To4() == nil {
  //Is ipv6
}
Posted by: Guest on December-14-2020

Browse Popular Code Answers by Language