netutil

package
v0.2.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientIP added in v0.2.19

func GetClientIP(r *http.Request) (ip string)

GetClientIP 获取用户ip

func GetLocalIP added in v0.2.19

func GetLocalIP() (ip string)

GetLocalIP 获取内网ip

func GetWwwIP added in v0.2.19

func GetWwwIP() (exip string)

GetWwwIP 获取公网IP地址

func IpAddress

func IpAddress() string

func LocalIP

func LocalIP() (string, error)

LocalIP gets the first NIC's IP address.

func LocalMac

func LocalMac() (string, error)

LocalMac gets the first NIC's MAC address.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL