Documentation
¶
Index ¶
- func AsError(errorText string) func(loc *SrcLocation)
- func AsHelp(helpText string) func(loc *SrcLocation)
- func AsWarning(warningText string) func(loc *SrcLocation)
- type LocationKind
- type LocationOption
- type LocationType
- type RangeOption
- type SrcLocation
- type Template
- func (t Template) AtGoNode(node goAst.Node, options ...LocationOption) Template
- func (t Template) AtGoPos(start, end goToken.Pos, options ...LocationOption) Template
- func (t Template) AtGoPosition(start, end goToken.Position, options ...LocationOption) Template
- func (t Template) InFile(filepath string, options ...LocationOption) Template
- func (t Template) WithDetails(details string) Template
- func (t Template) Wrapping(err error) Template
- type TemplateOption
- type TemplateRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsError ¶
func AsError(errorText string) func(loc *SrcLocation)
AsError allows you to set a SrcLocation's error text
Pass this option in when you give the error Template a src location