Documentation ¶
Index ¶
- type Builder
- type Object
- func (r *Object) Debugf(format string, args ...interface{})
- func (r *Object) Errorf(format string, args ...interface{}) error
- func (r *Object) Errors() int
- func (r *Object) Infof(format string, args ...interface{})
- func (r *Object) IsTerminal() bool
- func (r *Object) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { }
Builder contains the information and logic needed to create a new reporter.
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object is the reported object used by the tool. It prints the messages to the standard output or error streams.
func CreateReporterOrExit ¶
func CreateReporterOrExit() *Object
CreateReporterOrExit creates the reportor instance or exits to the console noting the error on failure.
func (*Object) Errorf ¶
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) Errors ¶
Errors returns the number of errors that have been reported via this reporter.
func (*Object) IsTerminal ¶ added in v1.1.1
Determine whether the reporter output is meant for the terminal or whether it's piped or redirected to a file.