util: honnef.co/go/js/util Index | Files

package util

import "honnef.co/go/js/util"

Package util provides some helpers for working with GopherJS.

Index

Package Files

util.go

func Error Uses

func Error(o *js.Object) error

func Float64Slice Uses

func Float64Slice(o *js.Object) []float64

func IntSlice Uses

func IntSlice(o *js.Object) []int

func StringSlice Uses

func StringSlice(o *js.Object) []string

type Err Uses

type Err struct {
    *js.Object
    Message string `js:"message"`
    Name    string `js:"name"`
    File    string `js:"fileName"`   // Mozilla extension
    Line    int    `js:"lineNumber"` // Mozilla extension
    Stack   string `js:"stack"`      // Chrome/Microsoft extension
}

func (Err) Error Uses

func (err Err) Error() string

type EventTarget Uses

type EventTarget struct {
    *js.Object
}

func (EventTarget) AddEventListener Uses

func (t EventTarget) AddEventListener(typ string, useCapture bool, listener func(*js.Object))

func (EventTarget) RemoveEventListener Uses

func (t EventTarget) RemoveEventListener(typ string, useCapture bool, listener func(*js.Object))

Package util imports 1 packages (graph) and is imported by 6 packages. Updated 2016-07-23. Refresh now. Tools for package owners.