cmod

package
v0.7.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGoModNotFound = errors.New("go.mod not found")
)

Functions

This section is empty.

Types

type Module

type Module = gopmod.Module

type Package

type Package struct {
	*gopmod.Package
	Path    string   // package path
	Dir     string   // absolue local path of the package
	Include []string // absolute include paths
}

func Import

func Import(mod *Module, pkgPath string) (p *Package, err error)

func Imports

func Imports(mod *Module, pkgPaths []string) (pkgs []*Package, err error)

func LoadDeps

func LoadDeps(dir string, deps []string) (pkgs []*Package, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL