Documentation ¶
Index ¶
- func Await(promiseLike js.Value) (js.Value, error)
- func AwaitWithErrorMapping(promiseLike js.Value, errorFn func(js.Value) error) (js.Value, error)
- func MapToString(vs []js.Value) []string
- func NewDenoConn(dialBackend DialBackend) func(ctx context.Context, network string, address string) (net.Conn, error)
- func NewPromise(executor func(_ func(interface{}), _ func(error))) js.Value
- func NewUint8Array(length int) js.Value
- func ToSlice(v js.Value) []js.Value
- type DialBackend
- type DialFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitWithErrorMapping ¶
func MapToString ¶
func NewDenoConn ¶
func NewPromise ¶
func NewUint8Array ¶
Types ¶
type DialBackend ¶
type DialBackend int
const ( DenoDialBackend DialBackend = iota NodeDialBackend DialBackend = iota )
func StringToDialBackend ¶
func StringToDialBackend(str string) DialBackend
Click to show internal directories.
Click to hide internal directories.