core

package
v0.0.0-...-42e5483 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DieOnError

func DieOnError(err error)

DieOnError check for any error and if so displays it before exiting with an error code

func Error

func Error(err error)

Error displays an error message to the user

func FileExists

func FileExists(filePath string) bool

FileExists returns true if the given file path exists

func Info

func Info(msg string)

Info displays a simple message to the user

func Infof

func Infof(format string, a ...interface{})

Infof displays a formatted message to the user

func IsQuietModeEnabled

func IsQuietModeEnabled() bool

IsQuietModeEnabled returns true if the quiet mode is enabled

func ReadJSONFile

func ReadJSONFile(fileName string, obj interface{}) error

func SetQuietMode

func SetQuietMode(quiet bool)

SetQuietMode restricts the output messages printed to the user

func Warn

func Warn(msg string)

Warn displays a warning message to the user

func Warnf

func Warnf(format string, a ...interface{})

Warnf displays a fomatted warning message to the user

Types

type Progress

type Progress interface {
	Init(total int)
	Increment()
	Done()
	IsCancelled() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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