Versions in this module Expand all Collapse all v1 v1.1.6 Feb 24, 2026 v1.1.5 Nov 27, 2025 Changes in this version + func GetIPFromRequest(req *http.Request) (ip string, err error) + func IsInBlocks(ip string, blocks []string) (isInBlocks bool, err error) + func IsLinkLocal(ip string) (isLinkLocal bool, err error) + func IsLoopback(ip string) (isLoopback bool, err error) + func IsPrivate(ip string) (isPrivate bool, err error) + func IsPublic(ip string) (isPublic bool, err error) + type Flag struct + Broadcast bool + Multicast bool + Unicast bool + Up bool + type NetInterface struct + Flag Flag + Ipv4 []string + Ipv6 []string + Mac string + Name string + func GetNetInterfaces() (netInterface []NetInterface, err error)