Documentation ¶
Index ¶
- func IsStd(p *packages.Package) bool
- func IsStdName(id string) bool
- func KeyValue(s string) (string, string)
- func Parse(ctx context.Context, expr []string) (ast.Expr, error)
- type Context
- 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 Transitive(a Set) Set
- func Union(a, b Set) Set
- type Strings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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.