util

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const (
	JSON_MARSHAL_PREFIX = ""
	JSON_MARSHAL_INDENT = "  "
	STEP_RANGE_SEP      = "-"
	NEXT_LINE_SUFFIX    = "\\"
)
View Source
const (
	SHELL_RED      = "\033[0;31m"
	SHELL_GREEN    = "\033[0;32m"
	SHELL_YELLOW   = "\033[1;33m"
	SHELL_NO_COLOR = "\033[0m"
)

Variables

This section is empty.

Functions

func Execute

func Execute(command string, r io.Reader, w io.Writer) error

func GetOrCreatePath added in v0.2.3

func GetOrCreatePath(loc string, perm os.FileMode, isDir bool) error

func LoadJsonDataFromFile

func LoadJsonDataFromFile(filePath string, object interface{}) error

func Scan

func Scan(prompt string, defaultInp string, historyFile string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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