toolshonnef.co/go/tools/analysis/facts/deprecated Index | Files

package deprecated

import "honnef.co/go/tools/analysis/facts/deprecated"

Index

Variables

var Analyzer = &analysis.Analyzer{
	Name:       "fact_deprecated",
	Doc:        "Mark deprecated objects",
	Run:        deprecated,
	FactTypes:  []analysis.Fact{(*IsDeprecated)(nil)},
	ResultType: reflect.TypeOf(Result{}),
}

Types

type IsDeprecated

type IsDeprecated struct{ Msg string }

func (*IsDeprecated) AFact

func (*IsDeprecated) AFact()

func (*IsDeprecated) String

func (d *IsDeprecated) String() string

type Result

type Result struct {
	Objects  map[types.Object]*IsDeprecated
	Packages map[*types.Package]*IsDeprecated
}

Source Files

deprecated.go

Version
v0.6.1 (latest)
Published
Mar 5, 2025
Platform
darwin/amd64
Imports
6 packages
Last checked
2 hours ago

Tools for package owners.