Documentation
¶
Index ¶
- type Problem
- type ProblemSlice
- type Problematic
- type Problems
- func (self *Problems) ARD() (ard.Map, error)
- func (self *Problems) Append(problem *Problem) bool
- func (self *Problems) Empty() bool
- func (self *Problems) Merge(problems *Problems) bool
- func (self *Problems) Print(locate bool) bool
- func (self *Problems) Report(skip int, message string) bool
- func (self *Problems) ReportError(err error) bool
- func (self *Problems) ReportInSection(skip int, message string, section string, row int, column int) bool
- func (self *Problems) ReportProblematic(skip int, problematic Problematic) bool
- func (self *Problems) Reportf(skip int, format string, arg ...interface{}) bool
- func (self *Problems) String() string
- func (self *Problems) ToString(locate bool) string
- func (self *Problems) Write(writer io.Writer, pretty bool, locate bool) bool
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 ¶
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 Problems ¶
type Problems struct { Problems ProblemSlice // contains filtered or unexported fields }
func (*Problems) ReportError ¶
func (*Problems) ReportInSection ¶
func (*Problems) ReportProblematic ¶
func (self *Problems) ReportProblematic(skip int, problematic Problematic) bool
Click to show internal directories.
Click to hide internal directories.