Skip to content

Instantly share code, notes, and snippets.

View StevenKGER's full-sized avatar

Steven StevenKGER

  • DB Systel GmbH
  • Berlin, Germany
  • 18:28 (UTC +02:00)
View GitHub Profile
@StevenKGER
StevenKGER / interfaces.go
Created April 1, 2018 00:12
Go tool to get preferred network interface
package main
import (
"net"
"strings"
)
func main() {
preffered, list, err := GetPublicInterface()

Keybase proof

I hereby claim:

  • I am StevenKGER on github.
  • I am stevenk (https://keybase.io/stevenk) on keybase.
  • I have a public key whose fingerprint is 35D1 EBB7 450C 3C06 927D B38B 3E9D 44AF 0BC2 4F8D

To claim this, I am signing this object: