Documentation ¶
Rendered for js/wasm
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSFunc ¶
func (JSFunc) SafeInvoke ¶
SafeInvoke is like Invoke but handles errors in the args (which js.ValueOf chokes on). Feel encouraged to add other types that js.ValueOf doesn't handle and that you'd like to handle more gracefully than panicking.
type Then ¶
type Then struct {
// contains filtered or unexported fields
}
Then implements the javascript `Thenable` interface https://javascript.info/async-await so that Go can return something to js and js can `await` it
Click to show internal directories.
Click to hide internal directories.