Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Marshal = func(v interface{}) (io.Reader, error) { b, err := json.MarshalIndent(v, "", "\t") if err != nil { return nil, err } return bytes.NewReader(b), nil }
Marshal is a function that marshals the object into an io.Reader. By default, it uses the JSON marshaller.
Functions ¶
func CWD ¶
func CWD() string
CWD - Get the current binary location for this application i.e. /usr/local/bin
func ExpandPath ¶
func ExpandPath(path *string)
ExpandPath - If the path is ~, this function will expand it to its full form (/home/<user>)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.