Documentation ¶
Index ¶
- func DisplayPosition(fset *token.FileSet, p token.Pos) token.Position
- func Ordinal(n int) string
- func Render(pass *analysis.Pass, x interface{}) string
- func RenderArgs(pass *analysis.Pass, args []ast.Expr) string
- func Report(pass *analysis.Pass, node Positioner, message string, opts ...Option)
- type Option
- type Options
- type Positioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Options)
func FilterGenerated ¶
func FilterGenerated() Option
func Fixes ¶
func Fixes(fixes ...analysis.SuggestedFix) Option
func Related ¶
func Related(node Positioner, message string) Option
func ShortRange ¶
func ShortRange() Option
type Options ¶
type Options struct { ShortRange bool FilterGenerated bool Fixes []analysis.SuggestedFix Related []analysis.RelatedInformation }
type Positioner ¶
Click to show internal directories.
Click to hide internal directories.