A port of Rob Pike's ivy that runs in the browser.
Switch branches/tags
Nothing to show
Clone or download
dmitshur Remove unnecessary os.Exit call in flag.Usage.
usage is made simpler and the behavior of ivy remains unchanged. This
is because the flag package already calls os.Exit(2) inside flag.Parse
when the parse fails.

That is what the flag package API is. It may be unfortunate, but it
cannot be changed in Go 1.

See mdempsky/unconvert@3b9aa41,
campoy/embedmd#12, and https://upspin-review.googlesource.com/c/9642/
for precedent.

Reference: https://dmitri.shuralyov.com/idiomatic-go#don-t-os-exit-2-inside-flag-usage.

Fixes the following issue:

	$ staticcheck github.com/shurcooL/ivybrowser
	ivy.go:46:7: the function assigned to Usage shouldn't call os.Exit, but it does (SA1022)
Latest commit 51aad7a Jun 1, 2017
Permalink
Failed to load latest commit information.
.travis.yml Travis: Use latest stable Go (1.8.1 at this time). May 15, 2017
LICENSE
README.md
doc.go Wording tweaks. Oct 2, 2016
index.html
io_js.go
ivy.go
style.css

README.md

ivybrowser

Build Status GoDoc

ivy in the browser.

Inspired by the iOS and Android ports of Rob Pike's ivy, I ported it to run in web browsers using GopherJS compiler.

Installation

go get -u github.com/shurcooL/ivybrowser
GOARCH=js go get -u -d github.com/shurcooL/ivybrowser

To run ivy in the browser, you'll need GopherJS compiler.

The quickest way is to run:

gopherjs serve

And then visit http://localhost:8080/github.com/shurcooL/ivybrowser in your browser. The package will be compiled on the fly and served over HTTP.

Alternatively, you can cd into this directory and run:

gopherjs build

That will build ivybrowser.js file. You can now open index.html in a browser.

License