Standard Library

GoSyscallJs

Go stdlib package — syscall/js. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.CopyBytesToGo()Neutral
#
Signature
CopyBytesToGo(dst []byte, src Value) int

CopyBytesToGo copies bytes from src to dst.

.CopyBytesToJS()Neutral
#
Signature
CopyBytesToJS(dst Value, src []byte) int

CopyBytesToJS copies bytes from src to dst.

.Error.Error()Neutral
#
Signature
Error.Error() string

Error implements the error interface.

.Func.Release()Neutral
#
Signature
Func.Release()

Release frees up resources allocated for the function.

.FuncOf()Neutral
#
Signature
FuncOf(fn func(this Value, args []Value) any) Func

FuncOf returns a function to be used by JavaScript.

.Global()Neutral
#
Signature
Global() Value

Global returns the JavaScript global object, usually "window" or "global".

.Null()Neutral
#
Signature
Null() Value

Null returns the JavaScript value "null".

.Type.String()Neutral
#
Signature
Type.String() string

Type.String function.

.Undefined()Neutral
#
Signature
Undefined() Value

Undefined returns the JavaScript value "undefined".

.Value.Bool()Neutral
#
Signature
Value.Bool() bool

Bool returns the value v as a bool.

Fully-Qualified Names

FQNField
syscall/jsfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # syscall/js