wasm

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

View Source
const (
	Utils         = "utils"
	ConfigVersion = "0.1.0"
	BuildFile     = "build.sh"

	WasmFileName      = "artifact"
	WasmExt           = ".wasm"
	WasmCompressedExt = ".zwasm"

	BufferSize = 1024
)

Variables

This section is empty.

Functions

func LanguageAliases added in v0.9.2

func LanguageAliases() map[SupportedLanguage][]string

func SupportedLanguages added in v0.9.1

func SupportedLanguages() map[SupportedLanguage]string

Types

type Dir

type Dir struct{ builders.Dir }

func Wd

func Wd(workDir string) Dir

func (Dir) BoilerPlate added in v0.9.1

func (d Dir) BoilerPlate() error

func (Dir) WasmCompressed

func (d Dir) WasmCompressed() string

func (Dir) WasmOutput

func (d Dir) WasmOutput() string

type SupportedLanguage added in v0.9.1

type SupportedLanguage string
const (
	Rust           SupportedLanguage = "Rust"
	Go             SupportedLanguage = "Go"
	AssemblyScript SupportedLanguage = "Assembly_Script"
)

Supported Languages

func LangFromExt added in v0.9.1

func LangFromExt(ext string) *SupportedLanguage

func (SupportedLanguage) CopyFunctionTemplateConfig added in v0.9.1

func (s SupportedLanguage) CopyFunctionTemplateConfig(templateRepo *git.Repository, wd, destination string) error

func (SupportedLanguage) Extension added in v0.9.1

func (s SupportedLanguage) Extension() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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