Documentation ¶
Rendered for js/wasm
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureString ¶
func EnsureString(arg NamedValue, err error) (string, error)
func EnsureStringArray ¶
func EnsureStringArray(arg NamedValue, err error) ([]string, error)
Types ¶
type AsyncRunner ¶
type AsyncRunner struct {
// contains filtered or unexported fields
}
func (*AsyncRunner) CreateAsyncFunc ¶
func (r *AsyncRunner) CreateAsyncFunc(innerFunc AsyncFunc) js.Func
type NamedValue ¶
func GetNamedArgument ¶
func GetNamedArgument(args []js.Value, name string) (NamedValue, error)
Function with named arguments in JS will look like this someFunc({param1: "value"})
func GetNamedProperty ¶
func GetNamedProperty(object js.Value, name string) (NamedValue, error)
func GetOptionalNamedArgument ¶
func GetOptionalNamedArgument(args []js.Value, name string) (NamedValue, error)
func NewNamedValue ¶
func NewNamedValue(name string, val js.Value) NamedValue
Click to show internal directories.
Click to hide internal directories.