apiunused

package
v0.0.0-...-cfeb1d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Doc:        "Estimate the unused pieces of the go-gitlab package",
	Name:       "apiunused",
	ResultType: reflect.TypeOf((*Result)(nil)),
	Requires:   []*analysis.Analyzer{gogitlab.Analyzer, usage.Analyzer},
	Run:        run,
}
View Source
var Output io.Writer = io.Discard

Functions

This section is empty.

Types

type Result

type Result struct {
	UnusedByFile map[string]Unused
}

type Unused

type Unused struct {
	Types   []string `json:"types,omitempty"`
	Funcs   []string `json:"funcs,omitempty"`
	Methods []string `json:"methods,omitempty"`
	Fields  []string `json:"fields,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL