package gcimporter

import "cuelang.org/go/internal/golangorgx/tools/gcimporter"

Index

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{})

Source Files

iexport.go

Version
v0.13.0 (latest)
Published
May 22, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
15 minutes ago

Tools for package owners.