Documentation
¶
Overview ¶
Package slice computes minimal dependency slices for Go declarations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeclInfo ¶
type DeclInfo struct {
Obj types.Object
Node ast.Node
File *ast.File // containing file for comment preservation
PkgPath string
}
DeclInfo holds information about a declaration in the slice.
type Result ¶
type Result struct {
Fset *token.FileSet
Decls []DeclInfo
Imports map[string]string // import path -> local name (non-internal only)
InlinedPkgNames map[string]bool // package names that were inlined (e.g., "abi", "bytealg")
RootPkgPkg string
}
Result holds the computed slice.
Click to show internal directories.
Click to hide internal directories.