jackpal / gateway

A golang library for discovering the address of a LAN gateway.
BSD 3-Clause "New" or "Revised" License
226 stars 69 forks source link

Support FreeBSD and Solaris by "netstat -rn" #9

Closed calmh closed 8 years ago

calmh commented 8 years ago

Both output similar data and can be parsed the same way. The _freebsd and _solaris files could of course be combined into something with an explicit build tag instead if you prefer, as the code is the same in both.