importer

package module
v0.0.0-...-4cb95fd Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2014 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UseGcFallback bool // Whether to fall back to GcImport when presented with a package that imports "C"
}

type Importer

type Importer struct {
	Imports   map[string]*types.Package // All packages imported by Importer
	Fallbacks []string                  // List of imports that we had to fall back to GcImport for
	Config    Config                    // Configuration for the importer
	// contains filtered or unexported fields
}

func New

func New() *Importer

func (*Importer) Import

func (imp *Importer) Import(imports map[string]*types.Package, path string) (pkg *types.Package, err error)

Import implements the Importer type from go/types.

Jump to

Keyboard shortcuts

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