tools: Index | Files

package fillstruct

import ""

Package fillstruct defines an Analyzer that automatically fills in a struct declaration with zero value elements for each field.


Package Files



const Doc = "" /* 288 byte string literal not displayed */


var Analyzer = &analysis.Analyzer{
    Name:             "fillstruct",
    Doc:              Doc,
    Requires:         []*analysis.Analyzer{inspect.Analyzer},
    Run:              run,
    RunDespiteErrors: true,

func SuggestedFix Uses

func SuggestedFix(fset *token.FileSet, rng span.Range, content []byte, file *ast.File, pkg *types.Package, info *types.Info) (*analysis.SuggestedFix, error)

Package fillstruct imports 13 packages (graph) and is imported by 2 packages. Updated 2021-01-24. Refresh now. Tools for package owners.