MCPcopy
hub / github.com/google/seesaw / ParseIP

Function ParseIP

common/seesaw/seesaw.go:236–238  ·  view source on GitHub ↗

ParseIP parses the given string and returns a seesaw IP initialised with the resulting IP address.

(ip string)

Source from the content-addressed store, hash-verified

234// ParseIP parses the given string and returns a seesaw IP initialised with the
235// resulting IP address.
236func 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().

Callers 3

vserver_test.goFile · 0.92

Calls 1

NewIPFunction · 0.85

Tested by 1