debug

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fprintf

func Fprintf(verbosityLevel Verbosity, w io.Writer, format string, a ...interface{}) (int, error)

Will print this log with a verbosity prefix prefix using fmt.Fprintf if the specified verbosity matches the current setting

Types

type Verbosity

type Verbosity int
const (
	VerbosityInfo  Verbosity = iota //INFO
	VerbosityDebug                  //DEBUG
)
var CliVerbosity Verbosity = VerbosityInfo

func VerbosityString

func VerbosityString(s string) (Verbosity, error)

VerbosityString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func VerbosityValues

func VerbosityValues() []Verbosity

VerbosityValues returns all values of the enum

func (Verbosity) IsAVerbosity

func (i Verbosity) IsAVerbosity() bool

IsAVerbosity returns "true" if the value is listed in the enum definition. "false" otherwise

func (Verbosity) String

func (i Verbosity) String() string

Jump to

Keyboard shortcuts

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