reporter

package
v1.2.45 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
}

Object is the reported object used by the tool. It prints the messages to the standard output or error streams.

func CreateReporter added in v1.2.37

func CreateReporter() *Object

CreateReporter returns a new reporter

func (*Object) Debugf

func (r *Object) Debugf(format string, args ...interface{})

Debugf prints a debug message with the given format and arguments.

func (*Object) Errorf

func (r *Object) Errorf(format string, args ...interface{}) error

Errorf prints an error message with the given format and arguments. It also return an error containing the same information, which will be usually discarded, except when the caller needs to report the error and also return it.

func (*Object) Infof

func (r *Object) Infof(format string, args ...interface{})

Infof prints an informative message with the given format and arguments.

func (*Object) IsTerminal added in v1.1.1

func (r *Object) IsTerminal() bool

Determine whether the reporter output is meant for the terminal or whether it's piped or redirected to a file.

func (*Object) Warnf

func (r *Object) Warnf(format string, args ...interface{})

Warnf prints an warning message with the given format and arguments.

Jump to

Keyboard shortcuts

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