meta

package
v0.0.0-...-de20e9d Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInterfaceInfo

func GetInterfaceInfo(dirOrFile, name string) (spec *ast.TypeSpec, err error)

func IsBaseTyp

func IsBaseTyp(name string) bool

func IsExist

func IsExist(path string) bool

Types

type PackageInfo

type PackageInfo struct {
	Dir,
	ImportPath,
	Name,
	Target,
	Root,
	StaleReason string
	Stale  bool
	Module struct {
		Main bool
		Path,
		Dir,
		GoMod,
		GoVersion string
	}
	Match,
	GoFiles,
	Imports,
	Deps []string
}

func FindPackageByImports

func FindPackageByImports(imports []*ast.ImportSpec, alias string) (*PackageInfo, error)

func GetPackageInfo

func GetPackageInfo(pkgPath string) (*PackageInfo, error)

func (PackageInfo) FindPackageDirFor

func (in PackageInfo) FindPackageDirFor(packageName string) (string, error)

Jump to

Keyboard shortcuts

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