gccgoimporter
packagestandard libraryThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package gccgoimporter implements Import for gccgo-generated object files.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeGccgoInstallation¶
type GccgoInstallation struct {// Version of gcc (e.g. 4.8.0).GccVersionstring// Target triple (e.g. x86_64-unknown-linux-gnu).TargetTriplestring// Built-in library paths used by this installation.LibPaths []string}
Information about a specific installation of gccgo.
func (*GccgoInstallation)GetImporter¶
func (inst *GccgoInstallation) GetImporter(incpaths []string, initmap map[*types.Package]InitData)Importer
Return an importer that searches incpaths followed by the gcc installation'sbuilt-in search paths and the current directory.
func (*GccgoInstallation)InitFromDriver¶
func (inst *GccgoInstallation) InitFromDriver(gccgoPathstring, args ...string) (errerror)
Ask the driver at the given path for information for this GccgoInstallation.The given arguments are passed directly to the call of the driver.
func (*GccgoInstallation)SearchPaths¶
func (inst *GccgoInstallation) SearchPaths() (paths []string)
Return the list of export search paths for this GccgoInstallation.
typeImporter¶
type Importer func(imports map[string]*types.Package, path, srcDirstring, lookup func(string) (io.ReadCloser,error)) (*types.Package,error)
An Importer resolves import paths to Packages. The imports map recordspackages already known, indexed by package path.An importer must determine the canonical package path and check importsto see if it is already present in the map. If so, the Importer can returnthe map entry. Otherwise, the importer must load the package data for thegiven path into a new *Package, record it in imports map, and return thepackage.
typeInitData¶
type InitData struct {// Initialization priority of this package relative to other packages.// This is based on the maximum depth of the package's dependency graph;// it is guaranteed to be greater than that of its dependencies.Priorityint// The list of packages which this package depends on to be initialized,// including itself if needed. This is the subset of the transitive closure of// the package's dependencies that need initialization.Inits []PackageInit}
The gccgo-specific init data for a package.
typePackageInit¶
type PackageInit struct {Namestring// short package nameInitFuncstring// name of init functionPriorityint// priority of init function, see InitData.Priority}
A PackageInit describes an imported package that needs initialization.