Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorWrapper ¶
func ErrorWrapper(runtime *goja.Runtime, in FunctionWithError) func(call goja.FunctionCall) goja.Value
ErrorWrapper wraps goja functions and provides runtime-based error handling.
func RandomString ¶
func RandomString() string
RandomString returns a random string of 24 characters in length
Types ¶
type FunctionWithError ¶
type FunctionWithError func(call goja.FunctionCall) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.