Hacker News new | ask | show | jobs
by zzzcpan 2812 days ago
Is it really that hard to solve bad UX of GOPATH? When Go 1.0 came out I remember I couldn't care less about Rob Pike's thoughts on GOPATH and GOROOT and just made a tiny wrapper for go tool that was looking for src/ directory in my tree to populate GOPATH, starting with the current directory (sort of like git does with .git/ directory). And for GOROOT I used a path relative to the wrapper itself.

If you are investing time into learning a new language anyway, these things take very little time in comparison and definitely worth it.