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

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.10
Published
Mar 15, 2022
Platform
js/wasm
Imports
15 packages
Last checked
6 hours ago

Tools for package owners.