consoleWriter
A simple golang packge that formats console output for Success, Warning, Error and Info conditions
Each method will output a status followed by a date/time stamp, followed by the text that you pass in.
Methods
printSuccess - Outputs [OK] in GREEN
printError - Outputs [ERROR] in RED
printWarning - Outputs [WARNING] in YELLOW
printInfo - Outputs [INFO] in White
Usage
import github.com/glensmall/consolewriter
consolewriter.printSuccess(txt string)
consolewriter.printError(txt string)
consolewriter.printWarining(txt string)
consolewriter.printInfo(txt string)
if additional formatting is requied, use:
consolewriter.printError(fmt.sprintf("you string %s", txt))