Documentation
¶
Overview ¶
Example (Dns) ¶
package main import ( "fmt" "github.com/wweir/sower/pkg/dhcp" ) func main() { got, err := dhcp.GetDNSServer() if err != nil { panic(err) } fmt.Println(got) }
Output:
Example (Iface) ¶
package main import ( "fmt" "github.com/wweir/sower/pkg/dhcp" ) func main() { got, err := dhcp.PickInternetInterface() if err != nil { panic(err) } fmt.Println(got) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDNSServer ¶
Types ¶
type Iface ¶
type Iface struct { net.HardwareAddr net.IP }
Iface is net interface address info
func PickInternetInterface ¶
PickInternetInterface pick the first active net interface