util

package
v0.0.0-...-0e5bf40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2018 License: BSD-3-Clause, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package util provides some helpers for working with GopherJS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

type Err

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

func (err Err) Error() string

type EventTarget

type EventTarget struct {
	*js.Object
}

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))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL