package unused
import "honnef.co/go/tools/unused"
Index ¶
Variables ¶
var 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
- Version
- v0.1.1
- Published
- Jan 20, 2021
- Platform
- darwin/amd64
- Imports
- 17 packages
- Last checked
- 5 minutes ago –
Tools for package owners.