Back to godoc.org
golang.org/x/tools / go / analysis / passes / composite

Package composite

v0.0.0-...-bf155c1
Latest Go to latest

The highest tagged major version is .

Published: Sep 29, 2020 | License: BSD-3-Clause | Module: golang.org/x/tools

Overview

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

Index

Constants

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

Variables

var Analyzer = &analysis.Analyzer{
	Name:             "composites",
	Doc:              Doc,
	Requires:         []*analysis.Analyzer{inspect.Analyzer},
	RunDespiteErrors: true,
	Run:              run,
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier