Registry / networking / jackpal-gateway

jackpal-gateway

JSON →
library1.2.0gogounverified

Package gateway discovers the IP address of the default gateway on a network.

go get github.com/jackpal/gateway
INSTALL
IMPORT
SIG · JACKPAL-GATEWAY
J
jackpal-gateway
networkinggov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gateway
github.com/jackpal/gateway

Discover the default gateway IP

import "github.com/jackpal/gateway" ip, _ := gateway.DiscoverGateway() fmt.Println(ip)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
jackpal-gateway — go get jackpal-gateway · libregistry