PHP » GoLang |
login |
register |
about
|
ip2longip2long[code=golang] ip := net.ParseIP(ipAddress) if ip == nil { return 0 } return binary.BigEndian.Uint32(ip.To4()) [/code] |