loader

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package loader resolves Go package patterns into typed common.Targets using golang.org/x/tools/go/packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

Loader implements common.Loader over go/packages.

func New

func New(tests bool) *Loader

New returns a Loader. When tests is true, _test.go files (and test-variant packages) are loaded too.

func (*Loader) Load

func (l *Loader) Load(patterns ...string) ([]common.Target, error)

Load resolves the patterns (./..., import paths, directories, "file=" queries, or bare .go file paths) into typed Targets.

Jump to

Keyboard shortcuts

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