README ¶ gateway A simple library for discovering the IP address of the default gateway. Provides implementations for: FreeBSD Linux OS X (Darwin) Solaris Windows Other platforms use an implementation that always returns an error. 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_common.gogateway_linux.go Click to show internal directories. Click to hide internal directories.