gocc

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module added in v1.1.0

type Module struct {
	Name       string
	Module     string
	SourceCode string
}

func NewModule added in v1.1.0

func NewModule(pkgName, module, sourceCode string) (*Module, error)

func (*Module) CopyFrom added in v1.1.0

func (mod *Module) CopyFrom(file string) (*Suite, error)

func (*Module) CreateRunner added in v1.1.0

func (mod *Module) CreateRunner(tests []*Suite) error

func (*Module) Run added in v1.1.0

func (mod *Module) Run(stdout io.Writer, defaultHost string) error

type Package

type Package struct {
	Name       string
	SourceCode string
}

func NewPackage

func NewPackage(root string, pkg string) (*Package, error)

func (*Package) CopyFrom

func (pkg *Package) CopyFrom(file string) (*Suite, error)

func (*Package) CreateMod

func (pkg *Package) CreateMod() error

func (*Package) CreateRunner

func (pkg *Package) CreateRunner(tests []*Suite) error

func (*Package) Run

func (pkg *Package) Run(stdout io.Writer, defaultHost string) error

type Sandbox

type Sandbox struct {
	Path  string
	Cache string
	// contains filtered or unexported fields
}

Sandbox environment for Golang

func NewSandbox

func NewSandbox(stdout io.Writer, root string) (*Sandbox, error)

Configure new sandbox environment

func (*Sandbox) Compile

func (box *Sandbox) Compile(pkg *Package) error

Compile package, producing binary code

type Suite added in v1.1.0

type Suite struct {
	File    string
	Pkg     string
	PkgPath string
	Units   []string
}

func NewSuite added in v1.1.0

func NewSuite(module, file string) (*Suite, error)

Jump to

Keyboard shortcuts

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