gcimporter

package
v0.14.0-0.dev Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPkg

func FindPkg(path, srcDir string) (filename, id string)

func IExportBundle

func IExportBundle(out io.Writer, fset *token.FileSet, pkgs []*types.Package) error

func IExportData

func IExportData(out io.Writer, fset *token.FileSet, pkg *types.Package) error

func IExportShallow

func IExportShallow(fset *token.FileSet, pkg *types.Package, reportf ReportFunc) ([]byte, error)

func IImportShallow

func IImportShallow(fset *token.FileSet, getPackages GetPackagesFunc, data []byte, path string, reportf ReportFunc) (*types.Package, error)

func Import

func Import(packages map[string]*types.Package, path, srcDir string, lookup func(path string) (io.ReadCloser, error)) (pkg *types.Package, err error)

Types

type GetPackagesFunc

type GetPackagesFunc = func(items []GetPackagesItem) error

type GetPackagesItem

type GetPackagesItem struct {
	Name, Path string
	Pkg        *types.Package
	// contains filtered or unexported fields
}

type ReportFunc

type ReportFunc = func(string, ...interface{})

Jump to

Keyboard shortcuts

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