gateway

package module
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

README

gateway

A simple library for discovering the IP address of the default gateway.

Build Status

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!

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL