link

package
v0.0.0-...-4665129 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCircularImport    = errors.New("circular import")
	ErrMissingPackage    = errors.New("missing package")
	ErrMissingMainMethod = errors.New("missinng main method")
)

Functions

func Link(syms *symtab.Symtab, env LinkerEnv) (*format.Program, error)

Given a collection of packages keyed by path, create a program by starting with the "main" package and taking the transitive closure of the import relation.

Types

type LinkerEnv

type LinkerEnv interface {
	LoadPackage(path string) (*format.Package, error)
}

Jump to

Keyboard shortcuts

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