Documentation ¶
Overview ¶
Package netutil provide some network util functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalIPs ¶ added in v0.6.10
func GetLocalIPs() (ips []string)
GetLocalIPs get local IPs, will panic if error.
func InternalIPv1 ¶ added in v0.6.11
func InternalIPv1() (ip string)
InternalIPv1 get internal IP buy old logic
func InternalIPv4 ¶ added in v0.5.0
func InternalIPv4() string
InternalIPv4 get internal IPv4 for host.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package httpctype list some common http content-type
|
Package httpctype list some common http content-type |
Package httpheader provides some common http header names.
|
Package httpheader provides some common http header names. |
Package httpreq provide an simple http requester and some useful util functions.
|
Package httpreq provide an simple http requester and some useful util functions. |
Click to show internal directories.
Click to hide internal directories.