package fillstruct
import "golang.org/x/tools/internal/lsp/analysis/fillstruct"
Package fillstruct defines an Analyzer that automatically fills in a struct declaration with zero value elements for each field.
Index ¶
- Constants
- Variables
- func SuggestedFix(fset *token.FileSet, rng span.Range, content []byte, file *ast.File, pkg *types.Package, info *types.Info) (*analysis.SuggestedFix, error)
Constants ¶
const Doc = "" /* 288 byte string literal not displayed */
Variables ¶
var Analyzer = &analysis.Analyzer{ Name: "fillstruct", Doc: Doc, Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, RunDespiteErrors: true, }
Functions ¶
func SuggestedFix ¶
func SuggestedFix(fset *token.FileSet, rng span.Range, content []byte, file *ast.File, pkg *types.Package, info *types.Info) (*analysis.SuggestedFix, error)
Source Files ¶
fillstruct.go
- Version
- v0.1.5
- Published
- Jul 13, 2021
- Platform
- darwin/amd64
- Imports
- 13 packages
- Last checked
- 9 hours ago –
Tools for package owners.