util

package
v0.0.0-...-37536b8 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwaitReachable

func AwaitReachable(addr string, maxWait time.Duration) error

func CmdExists

func CmdExists(file string) bool

func LocalIP

func LocalIP() (net.IP, error)

LocalIP returns external IP V4 address of localhost Russ Cox: https://groups.google.com/d/msg/golang-nuts/WXKmB1MI-6g/HiUtV02i4bUJ

func MemAlloc

func MemAlloc() uint64

MemAlloc returns the current memory allocations of the Golang process for calculating the memory overhead a data structure

func RandString

func RandString(n int) string

RandString returns a random string of length n made up of upper and lower alphabetic letters

Types

type Cmd

type Cmd struct {
	// contains filtered or unexported fields
}

func Command

func Command(name string, arg ...string) *Cmd

func (*Cmd) Err

func (c *Cmd) Err() error

func (*Cmd) Output

func (c *Cmd) Output() []byte

func (*Cmd) Run

func (c *Cmd) Run() error

func (*Cmd) String

func (c *Cmd) String() string

Jump to

Keyboard shortcuts

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