Discover Packages
github.com/go-ocf/kit
net
package
Version:
v0.0.0-...-48b1b68
Opens a new window with list of versions in this module.
Published: Aug 3, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ParseIPZone parses s as an IP address, return it and its associated zone
identifier (IPv6 only).
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.
MakeAddr set all members.
MakeHostname set the hostname and no port.
Parse parses the hostname and port number.
ParseString parses the hostname and port number.
ParseURL parses the hostname and port number.
GetPort returns the port.
GetScheme returns the scheme.
RemovePort sets the zero value.
RemoveScheme sets the empty value.
SetPort changes the port.
SetScheme changes the scheme.
String formats the address with the optional port.
URL formats the scheme with address and with the optional port.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.