Documentation
¶
Overview ¶
Package modules contains additional JS modules exported into the runtime
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Base64 = &Base64module{}
Base64 module provides functions to encode/decode strings to Base64
Example (js):
const encoded = btoa('hello'); const decoded = atob(encoded);
Functions ¶
This section is empty.
Types ¶
type Base64module ¶
type Base64module struct{}
func (*Base64module) Enable ¶
func (b *Base64module) Enable(runtime *goja.Runtime)
type RuntimeModule ¶
type RuntimeModule struct { // Name of the module as it can be seen from the JS runtime Name string // The content of the module. Can be any type. Module interface{} }
RuntimeModule is a container for modules
Click to show internal directories.
Click to hide internal directories.