An open API service indexing awesome lists of open source software.

https://github.com/bep/go-or-gopherjs

A CLI wrapper invoking go or gopherjs based on GOARCH == "js".
https://github.com/bep/go-or-gopherjs

Last synced: about 1 year ago
JSON representation

A CLI wrapper invoking go or gopherjs based on GOARCH == "js".

Awesome Lists containing this project

README

          

# go-or-gopherjs

A CLI wrapper invoking `go` or `gopherjs` based on `GOARCH=js`.

Simplest way of installing:

`go get github.com/bep/go-or-gopherjs` and make sure that `$GOPATH/bin` is on your `PATH`.

# Use

I use [LiteIDE](https://github.com/visualfc/liteide) for all my Go development, so the steps provided here works for that application. This wrapper may not even be needed in other IDEs. Also note that the paths provided are for `macOS` and will be different on other platforms.

Edit `/Applications/LiteIDE.app/Contents/Resources/litebuild/gosrc.xml`:

```

```

To:

```

```

Then, in `/Applications/LiteIDE.app/Contents/Resources/liteenv`:

```
cp system.env js.env
```

Uncomment `GOARCH` and modify to:

```
GOARCH=js
```

Now you can just switch to the `js` environment inside LiteIDE when you are doing GopherJS development.