Documentation ¶
Index ¶
- func ParseIPZone(s string) (goNet.IP, string)
- type Addr
- func (a Addr) GetHostname() string
- func (a Addr) GetPort() uint16
- func (a Addr) GetScheme() string
- func (a Addr) RemovePort() Addr
- func (a Addr) RemoveScheme() Addr
- func (a Addr) SetHostname(hostname string) Addr
- func (a Addr) SetPort(port uint16) Addr
- func (a Addr) SetScheme(scheme string) Addr
- func (a Addr) String() string
- func (a Addr) URL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addr ¶
type Addr struct {
// contains filtered or unexported fields
}
Addr represents a hostname and an optional port. The port == 0 means no port. For TCP, port number 0 is reserved and cannot be used. For UDP, the source port is optional and 0 means no port.
func MakeHostname ¶
MakeHostname set the hostname and no port.
func ParseString ¶
ParseString parses the hostname and port number.
Click to show internal directories.
Click to hide internal directories.