generator

package
v0.0.0-...-42c30fa Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateWrapperFile

func GenerateWrapperFile(pkg *ast.Package, config *Config) (*ast.File, error)

returns a file containing wasm wrappers for each of the top-level function declarations in the pkg and a wasmMain function that exposes each of the exported functions to js

Types

type Config

type Config struct {
	ExportWrappers bool
	AliasResolvers bool
}

func NewConfig

func NewConfig() *Config

Jump to

Keyboard shortcuts

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