Documentation ¶
Overview ¶
Package unused contains code for finding unused code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &lint.Analyzer{ Doc: &lint.Documentation{ Title: "Unused code", }, Analyzer: &analysis.Analyzer{ Name: "U1000", Doc: "Unused code", Run: Run, Requires: []*analysis.Analyzer{generated.Analyzer, directives.Analyzer}, ResultType: reflect.TypeOf(Result{}), }, }
View Source
var Debug io.Writer
Functions ¶
Types ¶
type Node ¶
type NodeID ¶
type NodeID uint64
OPT(dh): 32 bits would be plenty, but the Node struct would end up with padding, anyway.
type ObjectPath ¶
type ObjectPath struct { PkgPath string ObjPath objectpath.Path }
type SerializedGraph ¶
type SerializedGraph struct {
// contains filtered or unexported fields
}
func (*SerializedGraph) Dot ¶
func (g *SerializedGraph) Dot() string
Dot formats a graph in Graphviz dot format.
func (*SerializedGraph) Merge ¶
func (g *SerializedGraph) Merge(nodes []Node)
func (*SerializedGraph) Results ¶
func (g *SerializedGraph) Results() Result
Click to show internal directories.
Click to hide internal directories.