imports_analyzer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnalyzer

func GetAnalyzer(requiredNamingPairs, forbidden *StringSliceFlag) (*analysis.Analyzer, error)

Types

type ConfiguredInspector

type ConfiguredInspector struct {
	RequiredNamesRef  *StringSliceFlag
	ForbiddenPathsRef *StringSliceFlag
}

type RequiredImportName

type RequiredImportName struct {
	Path string
	Name string
}

func ParseRequiredNamePairs

func ParseRequiredNamePairs(values []string) ([]RequiredImportName, error)

type StringSliceFlag

type StringSliceFlag []string

func (*StringSliceFlag) Set

func (i *StringSliceFlag) Set(value string) error

func (*StringSliceFlag) String

func (i *StringSliceFlag) String() string

Jump to

Keyboard shortcuts

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