Documentation
¶
Overview ¶
Package netx provides some convenient net functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPIsOn ¶ added in v0.2.0
IPIsOn reports whether the ip is configured on a certain network interface.
If ip is empty, return (false, nil).
func SplitHostPort ¶
SplitHostPort separates host and port. If the port is not valid, it returns the entire input as host, and it doesn't check the validity of the host. Unlike net.SplitHostPort, but per RFC 3986, it requires ports to be numeric.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.