util

package module
Version: v0.0.0-...-96b8dd9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2015 License: MIT Imports: 1 Imported by: 8

README

js/util

Package util provides some helpers for working with GopherJS.

Install

go get honnef.co/go/js/util

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL