Documentation ¶
Index ¶
Constants ¶
const (
// Filename is the standard file name for link.deps files.
Filename = "link.deps"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkDeps ¶
type LinkDeps struct {
// contains filtered or unexported fields
}
LinkDeps represents the contents of a Filename file. It lists all synthetic dependencies added by instrumentation into a Go object archive. These include the transitive closure of link-time dependencies, so that it is not necessary to perform a full traversal of transitive dependencies to consume. Link-time dependencies consist of new dependencies introduced to resolve go:linkname directives as well as new import-level directives that the Go toolchain is not normally aware of.
func FromArchive ¶
FromArchive reads a Filename file from the provided Go archive file. Returns an empty LinkDeps if the archive does not contain a Filename file.
func FromImportConfig ¶ added in v1.0.0
func FromImportConfig(importcfg *importcfg.ImportConfig) (LinkDeps, error)
FromImportConfig aggregates entries from all Filename found in the archives listed in importcfg.ImportConfig.
func (*LinkDeps) Contains ¶ added in v1.0.0
Contains checks whether a given import path is already represented by this LinkDeps.
func (*LinkDeps) Dependencies ¶
Dependencies returns all import paths registered in this LinkDeps instance.