Documentation ¶
Index ¶
- func Await(promise js.Value) js.Value
- func AwaitErr(promise js.Value) (js.Value, error)
- func CopyObj(jsObj js.Value) js.Value
- func Err(args ...any)
- func HasProp(jsObj js.Value, prop string) bool
- func Log(args ...any)
- func Promise(fn func() (any, error)) any
- func ToGoMap(jsObj js.Value) map[string]any
- func ToGoSlice(jsArray js.Value) []any
- func ToGoStringMap(jsObj js.Value) map[string]string
- func ToGoStringSlice(jsArray js.Value) []string
- func ToJSArray[S ~[]E, E any](s S) []any
- func ToJSError(err error) js.Value
- func ToJSMap(m map[string]string) map[string]any
- func WanixSyscall(fn string, args ...any) (js.Value, error)
- func WanixSyscallResp(fn string, args ...any) (response js.Value, err error)
- type ReadWriter
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToGoStringSlice ¶
func WanixSyscall ¶
Returns the syscall `response.value`. To access the response itself see `WanixSyscallResp` instead.
Types ¶
type ReadWriter ¶
type ReadWriter struct { io.ReadCloser io.WriteCloser }
func (*ReadWriter) Close ¶
func (rw *ReadWriter) Close() (err error)
Click to show internal directories.
Click to hide internal directories.