Documentation
¶
Index ¶
- Variables
- type Class
- type Module
- func (p *Module) IsClass(ext string) (isProj bool, 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 *Class, ok bool)
- func (p *Module) LookupDepMod(modPath string) (modVer module.Version, ok bool)
- func (p *Module) PkgType(pkgPath string) PkgType
- func (p *Module) RegisterClasses(registerClass ...func(c *Class)) (err error)
- type Package
- type PkgType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ClassSpx = &Class{ ProjExt: ".gmx", WorkExt: ".spx", PkgPaths: []string{"github.com/goplus/spx", "math"}, } )
View Source
var (
ErrNotClassFileMod = errors.New("not a classfile module")
)
Functions ¶
This section is empty.
Types ¶
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) LookupDepMod ¶
LookupDepMod lookups a depended module. If modVer.Path is replace to be a local path, it will be canonical to an absolute path.
func (*Module) RegisterClasses ¶
Click to show internal directories.
Click to hide internal directories.