Documentation ¶
Index ¶
- func Await(promise js.Value) (js.Value, error)
- func Call(obj js.Value, method string, args ...any) (js.Value, error)
- func Copy(dst Bytes, src Bytes)
- func Invoke(fn js.Value, args ...any) (js.Value, error)
- func Keys(obj js.Value) []string
- func New(class js.Value, args ...any) (js.Value, error)
- func Print(v js.Value)
- type Bytes
- type BytesReader
- type BytesWriter
- type Ticker
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
Bytes mimics []byte using a JS Uint8Array as the underlying array.
type BytesReader ¶ added in v0.2.5
type BytesReader struct {
Src Bytes
}
BytesReader wraps a Bytes object to function as an io.Reader. [Src] must be a valid Bytes value. It can be retrieved or exchanged when done, and will always be the remaining subslice of the initial data.
func (*BytesReader) Close ¶ added in v0.2.5
func (x *BytesReader) Close() error
type BytesWriter ¶ added in v0.2.5
type BytesWriter struct {
Dst Bytes
}
BytesWriter wraps a Bytes object to function as an io.Writer. [Dst] must be a valid Bytes value. It may be freely retrieved or exchanged when done writing to the current value.
func (*BytesWriter) Close ¶ added in v0.2.5
func (x *BytesWriter) Close() error
type Ticker ¶ added in v0.2.4
type Ticker struct {
// contains filtered or unexported fields
}
A Ticker represents a JS Interval. Useful to synchronize with the main JS thread.
func TickerMake ¶ added in v0.2.9
Directories ¶
Path | Synopsis |
---|---|
Package css provides CSS Go definitions.
|
Package css provides CSS Go definitions. |
Package dom wraps JS DOM functionality.
|
Package dom wraps JS DOM functionality. |
elements
Package elements provides definitions for common DOM elements.
|
Package elements provides definitions for common DOM elements. |
Package media wraps the JS MediaDevices API.
|
Package media wraps the JS MediaDevices API. |
webm
Package webm implements the WebM media type.
|
Package webm implements the WebM media type. |
Package svg wraps SVG DOM elements.
|
Package svg wraps SVG DOM elements. |
Click to show internal directories.
Click to hide internal directories.