Documentation ¶ Index ¶ func Set(on js.Value, name string, fn func(js.Value, []js.Value) (any, error)) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Set ¶ func Set(on js.Value, name string, fn func(js.Value, []js.Value) (any, error)) Set sets a function on the given object that returns a promise that get's either resolved with the return value of the function, or rejected with the error returned by the function. Example usage: promise.Set(js.Global(), "myFunction", func(...)) Types ¶ This section is empty. Source Files ¶ View all Source files register.go Click to show internal directories. Click to hide internal directories.