stat

package module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MPL-2.0 Imports: 3 Imported by: 3

README

stat

an extremely simple and minimal logging package for go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fail

func Fail(message ...interface{})

Fail prints an error message to the console and prepends it with [FAIL] in bold red text. It also exits the program with an exit code of 1.

func FailF added in v1.1.0

func FailF(format string, message ...interface{})

FailF prints an error message given a format string to the console and prepends it with [FAIL] in bold red text. It also exits the program with an exit code of 1.

func Info

func Info(message ...interface{})

Info prints an informational message to the console and prepends it with [INFO] in bold cyan text.

func InfoF added in v1.1.0

func InfoF(format string, message ...interface{})

InfoF prints an informational message given a format string to the console and prepends it with [INFO] in bold cyan text.

func Success

func Success(message ...interface{})

Success prints a successful message to the console and prepends it with [SCSS] in bold green text.

func SuccessF added in v1.1.0

func SuccessF(format string, message ...interface{})

SuccessF prints a successful message given a format string to the console and prepends it with [SCSS] in bold green text.

func Warn

func Warn(message ...interface{})

Warn prints a warning message to the console and prepends it with [WARN] in bold yellow text.

func WarnF added in v1.1.0

func WarnF(format string, message ...interface{})

WarnF prints a warning message given a format string to the console and prepends it with [WARN] in bold yellow text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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