Skip to content

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

License

Notifications You must be signed in to change notification settings

bep/go-or-gopherjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 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:

<config id="Go" name="GO" value="go"/>

To:

<config id="Go" name="GO" value="go-or-gopherjs"/>

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages