// SplitHostPort splits a network address into a host and a port. // The port is -1 when there is no port to be found func SplitHostPort(addr string) (host string, port int, err error) { … }
// SplitHostPort splits a network address into a host and a port. // The port is -1 when there is no port to be found func SplitHostPort(addr string) (host string, port int, err error) { … }