problems

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 9 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Problem

type Problem struct {
	Message string `json:"message" yaml:"message"`
	Section string `json:"section" yaml:"section"`
	Row     int    `json:"row" yaml:"row"`
	Column  int    `json:"column" yaml:"column"`
	File    string `json:"file" yaml:"file"`
	Line    int    `json:"line" yaml:"line"`
}

func NewProblem

func NewProblem(message string, section string, row int, column int, skip int) *Problem

func (*Problem) Equals

func (self *Problem) Equals(problem *Problem) bool

func (*Problem) String

func (self *Problem) String() string

fmt.Stringer interface

type ProblemSlice

type ProblemSlice []*Problem

func (ProblemSlice) Len

func (self ProblemSlice) Len() int

func (ProblemSlice) Less

func (self ProblemSlice) Less(i, j int) bool

func (ProblemSlice) Swap

func (self ProblemSlice) Swap(i, j int)

type Problematic

type Problematic interface {
	Problem() (string, string, int, int)
}

type Problems

type Problems struct {
	Problems ProblemSlice
	// contains filtered or unexported fields
}

func (*Problems) ARD

func (self *Problems) ARD() (ard.Map, error)

func (*Problems) Append

func (self *Problems) Append(problem *Problem) bool

func (*Problems) Empty

func (self *Problems) Empty() bool

func (*Problems) Merge

func (self *Problems) Merge(problems *Problems) bool

func (*Problems) Print

func (self *Problems) Print(locate bool) bool

func (*Problems) Report

func (self *Problems) Report(skip int, message string) bool

func (*Problems) ReportError

func (self *Problems) ReportError(err error) bool

func (*Problems) ReportInSection

func (self *Problems) ReportInSection(skip int, message string, section string, row int, column int) bool

func (*Problems) ReportProblematic

func (self *Problems) ReportProblematic(skip int, problematic Problematic) bool

func (*Problems) Reportf

func (self *Problems) Reportf(skip int, format string, arg ...interface{}) bool

func (*Problems) String

func (self *Problems) String() string

fmt.Stringer interface

func (*Problems) ToString

func (self *Problems) ToString(locate bool) string

func (*Problems) Write

func (self *Problems) Write(writer io.Writer, pretty bool, locate bool) bool

Jump to

Keyboard shortcuts

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