ParseIP parses the given string and returns a seesaw IP initialised with the resulting IP address.
(ip string)
| 234 | // ParseIP parses the given string and returns a seesaw IP initialised with the |
| 235 | // resulting IP address. |
| 236 | func ParseIP(ip string) IP { |
| 237 | return NewIP(net.ParseIP(ip)) |
| 238 | } |
| 239 | |
| 240 | // Equal returns true of the given seesaw.IP addresses are equal, as |
| 241 | // determined by net.IP.Equal(). |