Documentation
¶
Rendered for js/wasm
Index ¶
- Variables
- func Alert(msg string)
- func Dial(addr string) (net.Conn, error)
- func DialWithContext(ctx context.Context, addr string) (_ net.Conn, gerr error)
- func NewError(e JsValue) error
- type Error
- type EventType
- type JsFunc
- type JsObj
- type JsPromise
- type JsValue
- func Global() JsValue
- func JsClass(class string, path ...string) JsValue
- func JsGet(name string, path ...string) JsValue
- func JsNativeFuncOf(args ...string) JsValue
- func JsNew(class string, args ...interface{}) JsValue
- func JsNewPromise(fn func() ([]interface{}, error)) JsValue
- func JsValueAwait(v JsValue) ([]JsValue, error)
- func JsValueOf(o interface{}) JsValue
- type JsValueWrapper
- type TJsFunc
- type Wrapper
- type WsConn
- func (ws *WsConn) Close() error
- func (ws *WsConn) LocalAddr() net.Addr
- func (ws *WsConn) Read(b []byte) (int, error)
- func (ws *WsConn) RemoteAddr() net.Addr
- func (ws *WsConn) SetDeadline(t time.Time) error
- func (ws *WsConn) SetReadDeadline(t time.Time) error
- func (ws *WsConn) SetWriteDeadline(t time.Time) error
- func (ws *WsConn) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NULL = js.Null() Undefined = js.Undefined() )
Functions ¶
func DialWithContext ¶
Types ¶
type JsPromise ¶
type JsPromise struct {
// contains filtered or unexported fields
}
func JsPromiseInstance ¶
func (*JsPromise) JsAwaitContext ¶
type JsValueWrapper ¶
type JsValueWrapper struct {
// contains filtered or unexported fields
}
func (JsValueWrapper) Promised ¶
func (v JsValueWrapper) Promised() *JsPromise
type WsConn ¶
type WsConn struct {
// contains filtered or unexported fields
}
func (*WsConn) RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.