Documentation ¶
Index ¶
- type Caller
- type Problem
- type ProblemSlice
- type Problematic
- type Problems
- func (self *Problems) Append(problem *Problem) bool
- func (self *Problems) Empty() bool
- func (self *Problems) Merge(problems *Problems) bool
- func (self *Problems) NewProblems() *Problems
- func (self *Problems) Print(locate bool) bool
- func (self *Problems) Report(skip int, item string, message string) bool
- func (self *Problems) ReportError(err error) bool
- func (self *Problems) ReportFull(skip int, section string, item string, message string, row int, column int) bool
- func (self *Problems) ReportProblematic(skip int, problematic Problematic) bool
- func (self *Problems) Reportf(skip int, item string, format string, arg ...any) bool
- func (self *Problems) Slice() ProblemSlice
- func (self *Problems) String() string
- func (self *Problems) ToError(locate bool) error
- func (self *Problems) ToString(locate bool) string
- func (self *Problems) WithError(err error, locate bool) error
- func (self *Problems) Write(writer io.Writer, stylist *terminal.Stylist, 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 { Section string `json:"section" yaml:"section"` Item string `json:"item" yaml:"item"` Message string `json:"message" yaml:"message"` Row int `json:"row" yaml:"row"` Column int `json:"column" yaml:"column"` Callers []Caller `json:"callers" yaml:"callers"` }
func NewProblem ¶
type ProblemSlice ¶
type ProblemSlice []*Problem
type Problematic ¶
type Problems ¶
type Problems struct { Problems ProblemSlice `json:"problems" yaml:"problems"` Stylist *terminal.Stylist `json:"-" yaml:"-"` // contains filtered or unexported fields }
func NewProblems ¶ added in v0.1.24
func (*Problems) NewProblems ¶ added in v0.1.24
func (*Problems) ReportError ¶
func (*Problems) ReportFull ¶ added in v0.1.15
func (*Problems) ReportProblematic ¶
func (self *Problems) ReportProblematic(skip int, problematic Problematic) bool
func (*Problems) Slice ¶ added in v0.1.20
func (self *Problems) Slice() ProblemSlice
Click to show internal directories.
Click to hide internal directories.