matthewmueller / joy

A delightful Go to Javascript compiler (ON HOLD)
https://mat.tm/joy
GNU General Public License v3.0
1.32k stars 35 forks source link

Document Go installation instructions #68

Open matthewmueller opened 6 years ago

matthewmueller commented 6 years ago

For anything complicated, you'll need a $GOPATH and probably Go too.

I think I should probably recommend dl.golang.com since that's worked the best for me. If you have any thoughts here, let me know.

Related: #58

shaban commented 6 years ago

Sounds sufficent to me. Wanting to program javascript in go usually comes by

  1. falling in love with go
  2. which means you know how to install go
  3. and at least had a satisfactory experience in doing so
erbesharat commented 6 years ago

What do you think about adding a file like GOSETUP.md or anything else and linking it to the setup section of README? Then we can explain how to install and configure Go in there. Or another option as you said is to put a link to the official Go installation documentation.

caspervonb commented 6 years ago

For anything complicated, you'll need a $GOPATH and probably Go too.

GOPATH has a fallback value now (as of Go 1.8), so mirror that behavior in Joy if you are looking for the GOPATH.

The GOPATH environment variable now has a default value if it is unset. It defaults to $HOME/go on Unix and %USERPROFILE%/go on Windows.

Source: https://beta.golang.org/doc/go1.8#gopath

matthewmueller commented 6 years ago

Yep, taking advantage of this now via go/build's build.Default.GOPATH. Pretty rad, I recently setup my brother to use Go and he had a bunch of initial issues because of this. Hopefully this will resolve most of these early headaches.