Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromPath ¶ added in v0.9.0
LoadFromPath loads a .wasm.zip file into the rt instance
func NormalizeStaticFilename ¶ added in v0.6.2
NormalizeStaticFilename will take various variations of a filename and normalize it to what is listed in the staticFile name cache on the Bundle struct
func Write ¶
func Write(directiveBytes []byte, modules []os.File, staticFiles map[string]os.File, targetPath string) error
Write writes a runnable bundle based loosely on https://golang.org/src/archive/zip/example_test.go staticFiles should be a map of *relative* filepaths to their associated files, with or without the `static/` prefix.
Types ¶
type Bundle ¶
type Bundle struct {
Directive *directive.Directive
Runnables []rwasm.WasmModuleRef
// contains filtered or unexported fields
}
Bundle represents a Runnable bundle
Click to show internal directories.
Click to hide internal directories.