Documentation ¶ Index ¶ func IpAddress(r *http.Request) (net.IP, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IpAddress ¶ func IpAddress(r *http.Request) (net.IP, error) IpAddress returns client ip address from request Will check X-Real-IP and X-Forwarded-For header. Unless you have a trusted reverse proxy, you shouldn't use this function, the client can set headers to any arbitrary value it wants Types ¶ This section is empty. Source Files ¶ View all Source files ip.go Click to show internal directories. Click to hide internal directories.