README ¶ gateway A very simple library for discovering the IP address of the local LAN gateway. Provides implementations for Linux, OS X (Darwin) and Windows. Pull requests for other OSs happily considered! Expand ▾ Collapse ▴ Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func DiscoverGateway() (ip net.IP, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DiscoverGateway ¶ func DiscoverGateway() (ip net.IP, err error) Types ¶ This section is empty. Source Files ¶ View all Source files gateway_linux.go Click to show internal directories. Click to hide internal directories.