Categorygithub.com/net-byte/go-gateway
modulepackage
0.0.2
Repository: https://github.com/net-byte/go-gateway.git
Documentation: pkg.go.dev

# README

go-gateway

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

Build Status

Provides implementations for:

  • Linux
  • MacOS
  • Windows

Other platforms use an implementation that always returns an error.

# Functions

DiscoverGatewayIPv4 is the OS independent function to get the default ipv4 gateway.
DiscoverGatewayIPv6 is the OS independent function to get the default ipv6 gateway.