tool

package
v0.0.0-...-641ea48 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2017 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(f func() error, options *gbuild.Options, browserErrors *bytes.Buffer) int

HandleError If browserErrors is non-nil, errors are written for presentation in browser.

func Handler

func Handler(serveRoot string, options *gbuild.Options, prefixLength int) http.Handler

Handler is a http Handler to serve gopherjs file in real time options := &gbuild.Options{CreateMapFile: true} mux.Handle("/js-src/", tool.Handler("github.com/xxx/xxxx/", options, len("/js-src/")))

Types

This section is empty.

Jump to

Keyboard shortcuts

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