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.RawDocumentation{ 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 ¶
This section is empty.
Types ¶
type NodeID ¶ added in v0.4.0
type NodeID uint64
OPT(dh): 32 bits would be plenty, but the Node struct would end up with padding, anyway.
type ObjectPath ¶ added in v0.4.0
type ObjectPath struct { PkgPath string ObjPath objectpath.Path }
type SerializedGraph ¶ added in v0.4.0
type SerializedGraph struct {
// contains filtered or unexported fields
}
func (*SerializedGraph) Dot ¶ added in v0.4.0
func (g *SerializedGraph) Dot() string
Dot formats a graph in Graphviz dot format.
func (*SerializedGraph) Merge ¶ added in v0.4.0
func (g *SerializedGraph) Merge(nodes []Node)
func (*SerializedGraph) Results ¶ added in v0.4.0
func (g *SerializedGraph) Results() Result
Click to show internal directories.
Click to hide internal directories.