util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIP

func GetIP() string

GetIP returns the first non-loopback IP address

func GetIPWithPrefix

func GetIPWithPrefix(prefix string) string

GetIPWithPrefix returns the first non-loopback IP starting with the supplied prefix.

func NowStr

func NowStr() string

func ResolveIPFromHostsFile

func ResolveIPFromHostsFile() (string, error)

ResolveIPFromHostsFile reads the final IP address of the /etc/hosts file. Works for docker, typically at least...

Types

This section is empty.

Jump to

Keyboard shortcuts

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