# Packages
Package config exists to avoid dependency cycles when keeping most of gojs code internal.
Package custom is similar to the WebAssembly Custom Sections.
Package goarch isolates code from runtime.GOARCH=wasm in a way that avoids cyclic dependencies when re-used from other packages.
Package goos isolates code from runtime.GOOS=js in a way that avoids cyclic dependencies when re-used from other packages.
No description provided by the author
Package run exists to avoid dependency cycles when keeping most of gojs code internal.
No description provided by the author
No description provided by the author
# Functions
GetLastEventArgs implements goos.GetLastEventArgs.
LoadValue reads up to 8 bytes at the memory offset `addr` to return the value written by storeValue.
No description provided by the author
ToErrno maps I/O errors as the message must be the code, ex.
WriteArgsAndEnviron writes arguments and environment variables to memory, so they can be read by main, Go compiles as the function export "run".
# Variables
ClearTimeoutEvent implements runtime.clearTimeoutEvent which supports runtime.notetsleepg used by runtime.signal_recv.
CopyBytesToGo copies a JavaScript managed byte array to linear memory.
CopyBytesToJS copies linear memory to a JavaScript managed byte array.
Debug has unknown use, so stubbed.
ErrnoAcces Permission denied.
ErrnoAgain Resource unavailable, or operation would block.
ErrnoBadf Bad file descriptor.
ErrnoExist File exists.
ErrnoFault Bad address.
ErrnoIntr Interrupted function.
ErrnoInval Invalid argument.
ErrnoIo I/O error.
ErrnoIsdir Is a directory.
ErrnoLoop Too many levels of symbolic links.
ErrnoNametoolong Filename too long.
ErrnoNoent No such file or directory.
ErrnoNosys function not supported.
ErrnoNotdir Not a directory or a symbolic link to a directory.
ErrnoNotempty Directory not empty.
ErrnoNotsup Not supported, or operation not supported on socket.
ErrnoPerm Operation not permitted.
ErrnoRofs read-only file system.
FinalizeRef implements js.finalizeRef, which is used as a runtime.SetFinalizer on the given reference.
GetRandomData implements runtime.getRandomData, which initializes the seed for runtime.fastrand.
No description provided by the author
Nanotime1 implements runtime.nanotime which supports time.Since.
ResetMemoryDataView signals wasm.OpcodeMemoryGrow happened, indicating any cached view of memory should be reset.
ScheduleTimeoutEvent implements runtime.scheduleTimeoutEvent which supports runtime.notetsleepg used by runtime.signal_recv.
StringVal implements js.stringVal, which is used to load the string for `js.ValueOf(x)`.
ValueCall implements js.valueCall, which is used to call a js.Value function by name, e.g.
ValueDelete is stubbed as it isn't used in Go's main source tree.
ValueGet implements js.valueGet, which is used to load a js.Value property by name, e.g.
ValueIndex implements js.valueIndex, which is used to load a js.Value property by index, e.g.
ValueInstanceOf is stubbed as it isn't used in Go's main source tree.
ValueInvoke is stubbed as it isn't used in Go's main source tree.
ValueLength implements js.valueLength, which is used to load the length property of a value, e.g.
ValueLoadString implements js.valueLoadString, which is used copy a string value for `o.String()`.
ValueNew implements js.valueNew, which is used to call a js.Value, e.g.
ValuePrepareString implements js.valuePrepareString, which is used to load the string for `o.String()` (via js.jsString) for string, boolean and number types.
ValueSet implements js.valueSet, which is used to store a js.Value property by name, e.g.
ValueSetIndex is stubbed as it is only used for js.ValueOf when the input is []interface{}, which doesn't appear to occur in Go's source tree.
Walltime implements runtime.walltime which supports time.Now.
WasmExit implements runtime.wasmExit which supports runtime.exit.
WasmWrite implements runtime.wasmWrite which supports runtime.write and runtime.writeErr.