analyzer

package
v0.0.0-...-24ce0dc Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "importpackagename",
	Doc:      "Check package import naming",
	Run:      run,
	Requires: []*analysis.Analyzer{inspect.Analyzer},
}
View Source
var Config = AliasNames{}

Functions

This section is empty.

Types

type AliasNames

type AliasNames struct {
	// contains filtered or unexported fields
}

func (*AliasNames) Add

func (a *AliasNames) Add(alias string, path string)

func (*AliasNames) AliasForPath

func (a *AliasNames) AliasForPath(path string) string

type Flag

type Flag struct{}

Flag is a type that can be used with flag.Var to set Config entries.

func (Flag) Set

func (f Flag) Set(value string) error

func (Flag) String

func (f Flag) String() string

String ...

Jump to

Keyboard shortcuts

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