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".
- Host: GitHub
- URL: https://github.com/bep/go-or-gopherjs
- Owner: bep
- License: mit
- Created: 2017-02-22T11:11:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-06T09:40:43.000Z (about 8 years ago)
- Last Synced: 2025-02-13T14:41:36.502Z (about 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.