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.
Click to show internal directories.
Click to hide internal directories.