Documentation
¶
Index ¶
Constants ¶
View Source
const Banner = `` /* 421-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func HandlerError ¶
func HandlerError(err error)
Types ¶
type NetInformation ¶
type NetInformation struct {
Name string // 网卡名
HardwareAddr net.HardwareAddr
Mac string
IP string
Mask string
GatewayIP string
}
NetInformation 网络信息
func GetNetInformation ¶
func GetNetInformation() (*NetInformation, error)
GetNetInformation 通过网卡获得 MAC IP IPMask GatewayIP
Click to show internal directories.
Click to hide internal directories.