Documentation ¶
Index ¶
- func DisplayPosition(fset *token.FileSet, p token.Pos) token.Position
- func HasRange(node Positioner) bool
- 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
- func FilterGenerated() Option
- func Fixes(fixes ...analysis.SuggestedFix) Option
- func MaximumLanguageVersion(vers string) Option
- func MaximumStdlibVersion(vers string) Option
- func MinimumLanguageVersion(vers string) Option
- func MinimumStdlibVersion(vers string) Option
- func Related(node Positioner, message string) Option
- func ShortRange() Option
- type Options
- type Positioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasRange ¶ added in v0.1.4
func HasRange(node Positioner) bool
Types ¶
type Option ¶
type Option func(*Options)
func FilterGenerated ¶
func FilterGenerated() Option
func Fixes ¶
func Fixes(fixes ...analysis.SuggestedFix) Option
func MaximumLanguageVersion ¶ added in v0.5.0
func MaximumStdlibVersion ¶ added in v0.5.0
func MinimumLanguageVersion ¶ added in v0.5.0
func MinimumStdlibVersion ¶ added in v0.5.0
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 MinimumLanguageVersion string MaximumLanguageVersion string MinimumStdlibVersion string MaximumStdlibVersion string }
type Positioner ¶
Click to show internal directories.
Click to hide internal directories.