Versions in this module Expand all Collapse all v0 v0.5.0 Sep 14, 2026 Changes in this version + func ImportPathLocal(root, modulePath, directory string) (string, error) + func ParsePath(name string, content []byte) (string, error) + type BuildError struct + Err string + type BuildModule struct + Dir string + Main bool + Path string + type BuildPackage struct + CgoFiles []string + DepOnly bool + DepsErrors []BuildError + Dir string + Error *BuildError + GoFiles []string + ImportPath string + Module *BuildModule + Name string + Standard bool + type BuildSelection struct + Packages []BuildPackage + func (s *BuildSelection) Workspace() *Workspace + type BuildWorkspace struct + BaseDir string + Env []string + Overlay string + Patterns []string + Tags string + func (b BuildWorkspace) Resolve(ctx context.Context) (*BuildSelection, error) + type File struct + Dir string + ImportPath string + Path string + type Info struct + Dir string + Path string + func LocateFS(fsys fs.FS, start string) (*Info, error) + func LocateLocal(start string) (*Info, error) + type LocalDiscovery struct + BaseDir string + Exclude []string + Include []string + func (d LocalDiscovery) Walk(ctx context.Context, visit func(File) error) error + type LocalWorkspace struct + BaseDir string + ModuleDirs []string + func (w LocalWorkspace) Resolve(ctx context.Context) (*Workspace, error) + type PackageLocation struct + Dir string + ImportPath string + Module *Info + type Workspace struct + func (w *Workspace) Package(importPath string) (*PackageLocation, error) + func (w *Workspace) SourceFS(info *Info) fs.FS + func (w *Workspace) Walk(ctx context.Context, include, exclude []string, visit func(File) error) error