Help us shape the future of Go! Take the 2026 Go Developer Survey

sources

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPackagePaths

func LoadPackagePaths(dir string) (set.Set[string], string, error)

Types

type SourcesData

type SourcesData struct {
	Dir      string
	Packages []*packages.Package
}

func Load

func Load(dir string, patterns ...string) (*SourcesData, error)

func LoadExampleSources

func LoadExampleSources(t *testing.T) *SourcesData

func (*SourcesData) Content

func (d *SourcesData) Content(
	file *token.File,
	pos, end *token.Position,
	name string,
) ([]byte, error)

Jump to

Keyboard shortcuts

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