webapi: github.com/gowebapi/webapi/core/failjs Index | Files

package failjs

import "github.com/gowebapi/webapi/core/failjs"

Package failjs is equal api to syscall/js but is panic on all method invocation.

The usage is to get a tab complession to work inside an IDE (e.g. Visual Studio Code) without changing to GOOS to js


Package Files


type Error Uses

type Error struct {

func (Error) Error Uses

func (e Error) Error() string

type Func Uses

type Func struct {

func FuncOf Uses

func FuncOf(fn func(this Value, args []Value) interface{}) Func

func (Func) Release Uses

func (c Func) Release()

type Type Uses

type Type int
const (
    TypeUndefined Type = iota

func (Type) String Uses

func (t Type) String() string

type TypedArray Uses

type TypedArray struct {

func TypedArrayOf Uses

func TypedArrayOf(slice interface{}) TypedArray

func (TypedArray) Release Uses

func (a TypedArray) Release()

type Value Uses

type Value struct {

func Global Uses

func Global() Value

func Null Uses

func Null() Value

func Undefined Uses

func Undefined() Value

func ValueOf Uses

func ValueOf(x interface{}) Value

func (Value) Bool Uses

func (v Value) Bool() bool

func (Value) Call Uses

func (v Value) Call(m string, args ...interface{}) Value

func (Value) Float Uses

func (v Value) Float() float64

func (Value) Get Uses

func (v Value) Get(p string) Value

func (Value) Index Uses

func (v Value) Index(i int) Value

func (Value) InstanceOf Uses

func (v Value) InstanceOf(t Value) bool

func (Value) Int Uses

func (v Value) Int() int

func (Value) Invoke Uses

func (v Value) Invoke(args ...interface{}) Value

func (Value) JSValue Uses

func (v Value) JSValue() Value

func (Value) Length Uses

func (v Value) Length() int

func (Value) New Uses

func (v Value) New(args ...interface{}) Value

func (Value) Set Uses

func (v Value) Set(p string, x interface{})

func (Value) SetIndex Uses

func (v Value) SetIndex(i int, x interface{})

func (Value) String Uses

func (v Value) String() string

func (Value) Truthy Uses

func (v Value) Truthy() bool

func (Value) Type Uses

func (v Value) Type() Type

type ValueError Uses

type ValueError struct {
    Method string
    Type   Type

func (*ValueError) Error Uses

func (e *ValueError) Error() string

type Wrapper Uses

type Wrapper interface {
    JSValue() Value

Updated 2019-04-01. Refresh now. Tools for package owners.