Documentation
¶
Overview ¶
Package gxnet encapsulates some network functions
Index ¶
- func GetLocalIP(addr string) (string, error)
- func HostAddress(host string, port int) string
- func HostAddress2(host string, port string) string
- func HostPort(addr string) (string, string, error)
- func WSHostAddress(host string, port int, path string) string
- func WSHostAddress2(host string, port string, path string) string
- func WSSHostAddress(host string, port int, path string) string
- func WSSHostAddress2(host string, port string, path string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostAddress ¶
HostAddress composes a ip:port style address. Its opposite function is net.SplitHostPort.
func HostAddress2 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.