Documentation ¶
Overview ¶
Package rporter contains types and functions used to simplify reporting of information and errors detected by the metamodel tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v0.0.36
type Builder struct {
// contains filtered or unexported fields
}
Builder contains the data and logic needed to create a new reporter. Don't create instances of this type directly, use the New function instead.
func New ¶ added in v0.0.36
func New() *Builder
New creates a builder that can then be used to configurer and create a reporter.
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is the reported used by the metamodel tools. It prints the messages to the standard output stream. Don't create instances directly, use the New function instead.
func (*Reporter) 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 (*Reporter) Errors ¶
Errors returns the number of errors that have been reported via this reporter.