Movatterモバイル変換


[0]ホーム

URL:


gccgoimporter

packagestandard library
go1.25.2Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License:BSD-3-ClauseImports:17Imported by:0

Details

Repository

cs.opensource.google/go/go

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.

funcGetImporter

func GetImporter(searchpaths []string, initmap map[*types.Package]InitData)Importer

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.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp