reporter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	FileName        string
	FilePath        string
	IsValid         bool
	ValidationError error
}

The Report object stores information about the report and the results of the validation

type Reporter

type Reporter interface {
	Print(reports []Report) error
}

Print accepts an array of Report objects and determines how to output the contents. Output could be stdout, files, etc

type StdoutReporter

type StdoutReporter struct{}

func (StdoutReporter) Print

func (sr StdoutReporter) Print(reports []Report) error

Print implements the Reporter interface by outputting the report content to stdout

Jump to

Keyboard shortcuts

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