host

package
v0.0.0-...-721a60a Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hostname

func Hostname() string

func IPAddr

func IPAddr(iface string) string

IPAddr Prints off the IP addresses of each interface

func OperatingSystem

func OperatingSystem() string

OperatingSystem simply returns `runtime.GOOS`

Types

type Info

type Info struct {
	IPAddr   string
	OSType   string
	Hostname string
}

func HostInfo

func HostInfo() Info

Jump to

Keyboard shortcuts

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