Documentation ¶
Index ¶
- func IsStd(p *packages.Package) bool
- func IsStdName(id string) bool
- func IsTestPkg(pkg *packages.Package) bool
- func KeyValue(s string) (string, string)
- func LoadStd()
- func Parse(_ context.Context, expr []string) (ast.Expr, error)
- type Context
- func (ctx Context) Clone() *Context
- func (ctx Context) Config() *packages.Config
- func (ctx Context) Load(patterns ...string) ([]*packages.Package, error)
- func (ctx Context) LoadWithTests(patterns ...string) ([]*packages.Package, error)
- func (ctx Context) LoadWithoutTests(patterns ...string) ([]*packages.Package, error)
- func (ctx *Context) Set(key, value string)
- type Set
- func Calc(parentContext context.Context, expr []string) (Set, error)
- func DirectDependencies(a Set) Set
- func Incoming(a, b Set) Set
- func Intersect(a, b Set) Set
- func Main(a Set) Set
- func New(roots ...*packages.Package) Set
- func NewAll(src Set) Set
- func NewRoot(roots ...*packages.Package) Set
- func Reach(a, b Set) Set
- func Sources(a Set) Set
- func Std() Set
- func Subtract(a, b Set) Set
- func SymmetricDifference(a, b Set) Set
- func Test(a Set) Set
- func Transitive(a Set) Set
- func Union(a, b Set) Set
- func (set Set) Clone() Set
- func (set Set) IDs() []string
- func (set Set) IncludeRecursive(p *packages.Package)
- func (set Set) List() []*packages.Package
- func (set Set) Sorted() []*packages.Package
- func (set Set) Walk(fn func(*packages.Package))
- func (set Set) WalkDependencies(fn func(*packages.Package))
- type Strings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
func (Context) LoadWithTests ¶ added in v0.4.2
func (Context) LoadWithoutTests ¶ added in v0.4.2
type Set ¶
Set is a p.ID -> *packages.Package
func DirectDependencies ¶
DirectDependencies returns packages that are direct dependencies of a, `a` not included.
func SymmetricDifference ¶
SymmetricDifference returns packages that are different
func (Set) IncludeRecursive ¶
IncludeRecursive adds p recursively
func (Set) WalkDependencies ¶
Click to show internal directories.
Click to hide internal directories.