gocc

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) ([]string, error)

func (*Package) CreateMod

func (pkg *Package) CreateMod() error

func (*Package) CreateRunner

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

func (*Package) Run

func (pkg *Package) Run(stdout io.Writer) 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

Jump to

Keyboard shortcuts

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