package unused
import "honnef.co/go/tools/unused"
Index ¶
Variables ¶
var Analyzer = &lint.Analyzer{ Doc: &lint.Documentation{ Title: "Unused code", }, Analyzer: &analysis.Analyzer{ Name: "U1000", Doc: "Unused code", Run: run, Requires: []*analysis.Analyzer{buildir.Analyzer, facts.Generated, facts.Directives}, ResultType: reflect.TypeOf(Result{}), }, }
Types ¶
type Result ¶
TODO(dh): should we return a map instead of two slices?
type SerializedObject ¶
type SerializedObject struct { Name string Position token.Position DisplayPosition token.Position Kind string InGenerated bool }
type SerializedResult ¶
type SerializedResult struct { Used []SerializedObject Unused []SerializedObject }
func Serialize ¶
Source Files ¶
edge.go edgekind_string.go implements.go unused.go
Directories ¶
Path | Synopsis |
---|---|
unused/typemap | Package typemap defines Map, a mapping from types.Type to interface{} values. |
- Version
- v0.2.1
- Published
- Aug 16, 2021
- Platform
- js/wasm
- Imports
- 18 packages
- Last checked
- 10 minutes ago –
Tools for package owners.