jsutil

package
v0.0.0-...-49b5ceb Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func POE

func POE(err error)

POE is panic-on-error designed to bubble errors into the JS runtime.

We use a custom error type KubernetesError to indicate the source of the problem.

In the JavaScript runtime, throw/catch is implemented using panic. So to bubble an error to a try/catch, we need to panic.

func Remarshal

func Remarshal(src, dest interface{}) error

Remarshal turns src into JSON, and then unmarshals it into dest.

This is a cheap and easy way to take generic data from JavaScript and convert it to strongly typed data in Go.

Types

This section is empty.

Jump to

Keyboard shortcuts

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