Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct {
// contains filtered or unexported fields
}
Package for WASM
func (*Package) ExportFunction ¶
ExportFunction export the function to the global.{package name}.exports.{name}
type ReturnObject ¶
type ReturnObject struct { Success bool Return interface{} }
ReturnObject
func (*ReturnObject) Map ¶
func (obj *ReturnObject) Map() map[string]interface{}
Map transfer ReturnObject to map[string]interface{} for returning to js
Click to show internal directories.
Click to hide internal directories.