utils

package
v0.4.2-0...-e254bae Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

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

Exit exits the application and logs the given message

func ExitPrintError

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

ExitPrintError displays an error message on stderr and exit 1 Eventually prints more details about the error if verbose mode is enabled

func ExitVerbose

func ExitVerbose(verboseLog string, format string, args ...interface{})

ExitVerbose displays an error message on stderr and exit 1 Eventually prints more details if any verbose details are given and verbose mode is enabled

func InitLoggingConf

func InitLoggingConf()

InitLoggingConf initializes the loggers used in the rest of the application

func VerbosePrintln

func VerbosePrintln(logger *log.Logger, log string)

VerbosePrintln only prints log if verbose mode is enabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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