report

package
v0.0.0-...-8333e70 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Error checks if the fed error
	// variable is not nil and if so is
	// followed by a message to signify
	// that something went wrong.
	Error = func(v ...interface{}) {
		for _, e := range v {
			switch e.(type) {
			case error:
				if e != nil {
					errorPrint(v...)
				}
			}
		}
	}

	// Success displays a brightly colored
	// message to signify in the logs that
	// a check or function passed.
	Success = func(v ...interface{}) {
		successPrint(v...)
	}

	// Status displays a gray colored
	// message that is used to log what the
	// application is currently working on.
	Status = func(v ...interface{}) {
		statusPrint(v...)
	}

	// Seperator will print a terminal
	// seperator to organize logs.
	Seperator = func(title string) {
		if title == "" {
			seperatorPrint()
		} else {
			seperatorPrintTitle(title)
		}
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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