In Development Package, API may change between versions.

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

func AutoCompile

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

func AutoTest

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

func CacheBuildDirectory

func CacheBuildDirectory() string

func CacheDirectory

func CacheDirectory(dirs ...string) string

func CacheModuleDirectory

func CacheModuleDirectory() string

func Env

func Env() ([]string, error)

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

func Runtime

func Runtime() shell.Command

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

type CompileOption

type CompileOption func(*compileOption)

func CompileOptionTags

func CompileOptionTags(tags ...string) CompileOption

type TestOption

type TestOption func(*testOption)

func TestOptionTags

func TestOptionTags(tags ...string) TestOption