util

package
v0.0.0-...-9050134 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(e error)

func GetDefaultIP

func GetDefaultIP() string

GetDefaultIP will return the ip address associated with the default interface. Unfortunately, there is no current way to get this information using standard system calls. so we read from proc, but we don't ever throw an error. We just return an empty string.

func RandomColor

func RandomColor() []color.Attribute

RandomColor will return a random fg/bg color combination for use with the fatih/color library.

func ShellSplit

func ShellSplit(s string) []string

ShellSplit will split a string in the way that a shell would expect, respecting quoted characters culled from here: https://gist.github.com/jmervine/d88c75329f98e09f5c87

Types

This section is empty.

Jump to

Keyboard shortcuts

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