analyzer

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:      "varasconst",
	Doc:       "Checks that global variables marked with `// const` are never changed.",
	Run:       run,
	Requires:  []*analysis.Analyzer{inspect.Analyzer},
	FactTypes: []analysis.Fact{&VarMarkedConstFact{}},
}

Functions

This section is empty.

Types

type VarMarkedConstFact

type VarMarkedConstFact struct {
}

func (*VarMarkedConstFact) AFact

func (*VarMarkedConstFact) AFact()

func (*VarMarkedConstFact) String

func (f *VarMarkedConstFact) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL