Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
RandomColor will return a random fg/bg color combination for use with the fatih/color library.
func ShellSplit ¶
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.
Click to show internal directories.
Click to hide internal directories.