Documentation
¶
Index ¶
- Variables
- type Class
- type MissingError
- type Module
- func (p *Module) ClassKind(fname string) (isProj, ok bool)
- func (p *Module) ImportClasses(importClass ...func(c *Project)) (err error)
- func (p *Module) IsClass(ext string) (ok bool)
- func (p *Module) IsGopMod() bool
- func (p *Module) IsValid() bool
- func (p *Module) Lookup(pkgPath string) (pkg *Package, err error)
- func (p *Module) LookupClass(ext string) (c *Project, ok bool)
- func (p *Module) LookupDepMod(modPath string) (modVer module.Version, ok bool)
- func (p *Module) PkgType(pkgPath string) PkgType
- type Package
- type PkgType
- type Project
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = New(modload.Default)
Default represents the default gop.mod object.
View Source
var (
ErrNotClassFileMod = errors.New("not a classfile module")
)
Functions ¶
This section is empty.
Types ¶
type MissingError ¶ added in v0.9.11
type MissingError struct {
Path string
}
func (*MissingError) Error ¶ added in v0.9.11
func (e *MissingError) Error() string
type Module ¶
func Load ¶
Load loads a module from a local dir. If we only want to load a Go modfile, pass env parameter as nil.
func LoadMod ¶
LoadMod loads a module from a versioned module path. If we only want to load a Go modfile, pass env parameter as nil.
func (*Module) ImportClasses ¶ added in v0.11.1
func (*Module) LookupDepMod ¶
LookupDepMod lookups a depended module. If modVer.Path is replace to be a local path, it will be canonical to an absolute path.
Click to show internal directories.
Click to hide internal directories.