goimporter

package module
v0.0.0-...-aece5f1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: BSD-3-Clause, MIT Imports: 10 Imported by: 0

Documentation

Overview

Package importer provides access to export data importers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() types.Importer

Default returns an Importer for the compiler that built the running binary.

func DefaultContext

func DefaultContext() *build.Context

DefaultContext, returns a copy of the default build.Context with updated GOROOT and GOPATH fields.

func For

func For(compiler string) types.Importer

For returns an Importer for the given compiler. Supported compilers are "gc", and "gccgo"

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns if err is a gcimporter.NotFoundError.

func New

func New(ctxt *build.Context) types.Importer

Returns a new types.Importer that uses the provided build.Context to determine package paths. The returned types.Importer will auto-install any packages missing object files.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(maxEntries int) *Cache

func (*Cache) Importer

func (c *Cache) Importer(ctxt *build.Context) types.Importer

Directories

Path Synopsis
internal
exact
Package exact implements Values representing untyped Go constants and the corresponding operations.
Package exact implements Values representing untyped Go constants and the corresponding operations.
gccgoimporter
Package gccgoimporter implements Import for gccgo-generated object files.
Package gccgoimporter implements Import for gccgo-generated object files.
gcimporter
Package gcimporter implements Import for gc-generated object files.
Package gcimporter implements Import for gc-generated object files.
gcimporter15
Package gcimporter implements Import for gc-generated object files.
Package gcimporter implements Import for gc-generated object files.
importer
package importer implements an exporter and importer for Go export data.
package importer implements an exporter and importer for Go export data.
lru
types
Package types declares the data types and implements the algorithms for type-checking of Go packages.
Package types declares the data types and implements the algorithms for type-checking of Go packages.
types/typeutil
Package typeutil defines various utilities for types, such as Map, a mapping from types.Type to interface{} values.
Package typeutil defines various utilities for types, such as Map, a mapping from types.Type to interface{} values.

Jump to

Keyboard shortcuts

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