In Development Package, API may change between versions.

import "github.com/egdaemon/eg/runtime/x/wasi/eggolang"

Variables

var BuildOption = boption(nil)

var CompileOption = coption(nil)

var InstallOption = ioption(nil)

var TestOption = toption(nil)

func AutoCompile

func AutoCompile(options ...coption) eg.OpFn

func AutoInstall

func AutoInstall(options ...ioption) eg.OpFn

func AutoTest

func AutoTest(options ...toption) eg.OpFn

func CacheBuildDirectory

func CacheBuildDirectory() string

func CacheDirectory

func CacheDirectory(dirs ...string) string

func CacheModuleDirectory

func CacheModuleDirectory() string

func Env

func Env() []string

attempt to build the golang environment that sets up the golang environment for caching.

func RecordCoverage

func RecordCoverage(ctx context.Context, _ eg.Op) (err error)

Record the coverage profile into the duckdb database.

func Runtime

func Runtime() shell.Command

Create a shell runtime that properly sets up the golang environment for caching.