export

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyPackage = "empty package"

Variables

View Source
var Cmd = &base.Command{
	UsageLine: "igop export [flags] [package]",
	Short:     "export Go package to igop builtin package",
}

Cmd - igop build

Functions

func Export

func Export(pkgs []string, ctxList []*build.Context)

func ExportPkg

func ExportPkg(prog *Program, pkg string, ctx *build.Context) (string, error)

func ExportPkgs

func ExportPkgs(pkgs []string, ctx *build.Context)

Types

type Package

type Package struct {
	Name          string
	Path          string
	Deps          []string
	NamedTypes    []string
	Interfaces    []string
	AliasTypes    []string
	Vars          []string
	Funcs         []string
	Consts        []string
	TypedConsts   []string
	UntypedConsts []string
	Links         []string
	Source        string
	// contains filtered or unexported fields
}

func (*Package) IsEmpty

func (p *Package) IsEmpty() bool

type Program

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

func NewProgram

func NewProgram(ctx *build.Context) *Program

func (*Program) DumpDeps

func (p *Program) DumpDeps(path string)

func (*Program) DumpExport

func (p *Program) DumpExport(path string)

func (*Program) ExportPkg

func (p *Program) ExportPkg(path string, sname string) (*Package, error)

func (*Program) ExportSource added in v0.9.10

func (p *Program) ExportSource(e *Package, info *loader.PackageInfo) error

func (*Program) Load

func (p *Program) Load(pkgs []string) error

Jump to

Keyboard shortcuts

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