Documentation ¶ Index ¶ func HandleError(f func() error, options *gbuild.Options, browserErrors *bytes.Buffer) int func Handler(serveRoot string, options *gbuild.Options, prefixLength int) http.Handler 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. Source Files ¶ View all Source files handler.go Click to show internal directories. Click to hide internal directories.