package composite

import "golang.org/x/tools/go/analysis/passes/composite"

Package composite defines an Analyzer that checks for unkeyed composite literals.

Index

Constants

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

Variables

var Analyzer = &analysis.Analyzer{
	Name:             "composites",
	Doc:              Doc,
	URL:              "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/composites",
	Requires:         []*analysis.Analyzer{inspect.Analyzer},
	RunDespiteErrors: true,
	Run:              run,
}

Source Files

composite.go whitelist.go

Version
v0.9.3
Published
Jun 1, 2023
Platform
js/wasm
Imports
8 packages
Last checked
5 hours ago

Tools for package owners.