packagex

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	*packages.Package
	AllPackages []*packages.Package
}

func Load

func Load(pattern string) (*Package, error)

func NewPackage

func NewPackage(pkg *packages.Package) *Package

func (*Package) Const

func (p *Package) Const(name string) *types.Const

func (*Package) Func

func (p *Package) Func(name string) *types.Func

func (*Package) Pkg

func (p *Package) Pkg(pkgPath string) *packages.Package

func (*Package) TypeName

func (p *Package) TypeName(name string) *types.TypeName

func (*Package) Var

func (p *Package) Var(name string) *types.Var

type PackageSet

type PackageSet map[string]*packages.Package

Jump to

Keyboard shortcuts

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