package useany

import "golang.org/x/tools/internal/lsp/analysis/useany"

Package useany defines an Analyzer that checks for usage of interface{} in constraints, rather than the predeclared any.

Index

Constants

const Doc = `check for constraints that could be simplified to "any"`

Variables

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

Source Files

useany.go

Version
v0.1.11
Published
Jun 9, 2022
Platform
windows/amd64
Imports
8 packages
Last checked
1 hour ago

Tools for package owners.