Documentation
¶
Index ¶
- func ClientIP(r *http.Request) string
- func ClientPublicIP(r *http.Request) string
- func HasLocalIP(ip net.IP) bool
- func HasLocalIPAddr(ip string) bool
- func HasLocalIPddr(ip string) bool
- func IP2Long(ip net.IP) (uint, error)
- func IPString2Long(ip string) (uint, error)
- func Long2IP(i uint) (net.IP, error)
- func Long2IPString(i uint) (string, error)
- func RemoteIP(r *http.Request) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientPublicIP ¶
func HasLocalIP ¶
func HasLocalIPAddr ¶
func HasLocalIPddr ¶
func IPString2Long ¶
func Long2IPString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.