Back to

package util

v0.0.0 (96b8dd9)
Latest Go to latest
Published: Feb 16, 2015 | License: MIT | Module:


Package util provides some helpers for working with GopherJS.


func Error

func Error(o *js.Object) error

func Float64Slice

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

func IntSlice

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

func StringSlice

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

type Err

type Err struct {
	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

func (err Err) Error() string

type EventTarget

type EventTarget struct {

func (EventTarget) AddEventListener

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

func (EventTarget) RemoveEventListener

func (t EventTarget) RemoveEventListener(typ string, useCapture bool, listener func(*js.Object))
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier