consolewriter

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: MIT Imports: 3 Imported by: 0

README

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))

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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