wasmexec

package module
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: BSD-3-Clause Imports: 2 Imported by: 5

README

wasmexec

For applications that need to provide the correct wasm_exec.js based on a go runtime version.

Rationale

The $GOROOT/misc/wasm/wasm_exec.js file is included in the go installation, but is only accessible from the filesystem.

This module provides a means to source the correct wasm_exec.js content programmatically.

Example


content, err = wejs.Current()

Go Report Card

created by tigwen

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Current

func Current() (content []byte, err error)

func Version

func Version(version string) (content []byte, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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