Documentation
¶
Overview ¶
package result provides monadic result binding
Use of code in this package is discouraged, as you should generally prefer handling errors.
This exists as an experiment to simplify code containing long chains of functions that can produce errors. The only usage right now is retrieving all keys of a JavaScript object in V8, which isn't exposed in v8go, and a current workaround involves multiple calls to V8 each of which can produce an error, and the previous version had 7 levels if nested if-statements.
Fixing the lack of support for Object.keys in v8go is a better solution to the same problem than using monadic bindings to go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.