Documentation ¶
Index ¶
- func AddIgnoreFlagName(names ...string)
- func IsDebug(s string) bool
- func IsDebugFacts() bool
- func IsDebugParallel() bool
- func IsDebugSanity() bool
- func IsDebugTiming() bool
- func IsDebugVerbose() bool
- func IsTestPkg(pkg string) bool
- func IsTrace() bool
- func NewInitAnalyzer(c *Container) *analysis.Analyzer
- func PkgPath(name string) string
- type Container
- func (c *Container) AddPass(p *analysis.Pass)
- func (c *Container) CurrentPass() *analysis.Pass
- func (c *Container) FindAstFileByObject(ov types.Object) (ap *analysis.Pass, f *ast.File, err error)
- func (c *Container) FindPass(pkg string) *analysis.Pass
- func (c *Container) SetCurrentPass(p *analysis.Pass)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIgnoreFlagName ¶
func AddIgnoreFlagName(names ...string)
func IsDebug ¶
IsDebug 判断是否指定 debug 类型 Debug is a set of single-letter flags:
f show [f]acts as they are created p disable [p]arallel execution of analyzers s do additional [s]anity checks on fact types and serialization t show [t]iming info (NB: use 'p' flag to avoid GC/scheduler noise) v show [v]erbose logging
func IsDebugParallel ¶
func IsDebugParallel() bool
IsDebugParallel disable parallel execution of analyzers
func IsDebugSanity ¶
func IsDebugSanity() bool
IsDebugSanity do additional sanity checks on fact types and serialization
func NewInitAnalyzer ¶
Types ¶
type Container ¶
type Container struct { Tests bool // contains filtered or unexported fields }
func (*Container) CurrentPass ¶
func (*Container) FindAstFileByObject ¶
func (*Container) SetCurrentPass ¶
Click to show internal directories.
Click to hide internal directories.