Documentation ¶
Overview ¶
Package fillstruct defines an Analyzer that automatically fills in a struct declaration with zero value elements for each field.
The analyzer's diagnostic is merely a prompt. The actual fix is created by a separate direct call from gopls to the SuggestedFixes function. Tests of Analyzer.Run can be found in ./testdata/src. Tests of the SuggestedFixes logic live in ../../testdata/fillstruct.
Index ¶
Constants ¶
View Source
const Doc = `` /* 286-byte string literal not displayed */
Variables ¶
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.