workspace

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadConfig

type LoadConfig struct {
	// BuildTags are passed to `go list` via `-tags`.
	BuildTags []string

	// Tests includes test files/packages when true.
	Tests bool
}

LoadConfig configures how packages are loaded.

type Loaded

type Loaded struct {
	Packages []*packages.Package
}

Loaded holds loaded packages and the effective config.

func Load

func Load(patterns []string, cfg LoadConfig) (*Loaded, error)

Load loads Go packages for the given patterns (e.g. ./...).

Jump to

Keyboard shortcuts

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