utils

package
v0.0.0-...-56406eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error)

func Fatalf

func Fatalf(error string, args ...interface{})

func GetExternalIP

func GetExternalIP() (string, error)

GetExternalIP will try to find the external IP address automatically, by using the OpenDNS myip tool.

func GetInterfaceIP

func GetInterfaceIP(requestedIface string) (string, error)

GetInterfaceIP will find the IP associated with the interface

func ValidIP

func ValidIP(ip string) bool

ValidIP tests if an IP address is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL