analyzer

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "exhaustivestruct",
	Doc:      "Checks if all struct's fields are initialized",
	Run:      run,
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Flags:    newFlagSet(),
}

Analyzer that checks if all struct's fields are initialized

View Source
var StructPatternList string

StructPatternList is a comma separated list of expressions to match struct packages and names The struct packages have the form example.com/package.ExampleStruct The matching patterns can use matching syntax from https://pkg.go.dev/path#Match If this list is empty, all structs are tested.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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