Documentation ¶
Index ¶
Constants ¶
View Source
const ( EntryError entryKind = iota EntryWarning EntryInfo EntryDeprecated )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Report ¶
type Report struct {
Entries []Entry
}
func ReportFromError ¶
func (*Report) AddPosition ¶
AddPosition updates all the entries with Line equal to 0 and sets the Line/Column fields to line/column. This is useful for when a type has a custom unmarshaller and thus can't determine an exact offset of the error with the type. In this case the offset for the entire chunk of json that got unmarshalled to the type can be used instead, which is still pretty good.
func (Report) IsDeprecated ¶
IsDeprecated returns if the report has deprecations
Click to show internal directories.
Click to hide internal directories.