Documentation ¶
Index ¶
- func GetPkgModPath(ctx *build.Context) string
- func LookupModFile(dir string) (string, error)
- type Mod
- type Module
- type ModuleList
- type Node
- type Package
- func (p *Package) Clear()
- func (p *Package) DepImportList(skipcmd bool, chkmodsub bool) []string
- func (p *Package) IsStd() bool
- func (p *Package) IsValid() bool
- func (p *Package) LoadModule(dir string) (err error)
- func (p *Package) LocalImportList(skipcmd bool) []string
- func (p *Package) Lookup(pkg string) (path string, dir string, typ PkgType)
- func (p *Package) Node() *Node
- type PathPkgsIndex
- type PkgSlice
- type PkgType
- type PkgsIndex
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPkgModPath ¶
func LookupModFile ¶
Types ¶
type ModuleList ¶
func NewModuleList ¶
func NewModuleList(ctx *build.Context) *ModuleList
func (*ModuleList) LoadModule ¶
func (mc *ModuleList) LoadModule(dir string) (*Module, error)
func (*ModuleList) LoadModuleFile ¶
func (mc *ModuleList) LoadModuleFile(fmod string) (*Module, error)
type Package ¶
type Package struct { ModList *ModuleList Root *Node NodeMap map[string]*Node // contains filtered or unexported fields }
func NewPackage ¶ added in v1.2.0
func (*Package) DepImportList ¶
func (*Package) LoadModule ¶ added in v1.2.0
func (*Package) LocalImportList ¶
type PathPkgsIndex ¶
type PathPkgsIndex struct {
Indexs []*PkgsIndex
}
func (*PathPkgsIndex) LoadIndex ¶
func (p *PathPkgsIndex) LoadIndex(context build.Context, srcDirs ...string)
func (*PathPkgsIndex) Sort ¶
func (p *PathPkgsIndex) Sort()
Click to show internal directories.
Click to hide internal directories.