printer

package
v0.0.0-...-3382da6 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package printer display in standard output simple info/success/error messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error, format string, args ...interface{})

Error prints the error with description

func FatalIfError

func FatalIfError(err error, code int)

FatalIfError prints the the error and exits the program if err is not nil

func FatalWithMessageIfError

func FatalWithMessageIfError(err error, code int, format string, args ...interface{})

FatalWithMessageIfError does the same than Error, then exit, if err is not nil

func Info

func Info(format string, args ...interface{})

Info prints a message in the std output prefixed with 'info'

func Success

func Success(format string, args ...interface{})

Success prints a message in sto output in green

Types

This section is empty.

Jump to

Keyboard shortcuts

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