Re:Looking at your program’s structure in Go 1.7
by grncdr on Tuesday August 16, 2016 @03:50AM
(#12296085)
You can always symlink a project located in your GOPATH to your `projects` directory.
[ Parent
| on HN ]
Re:Looking at your program’s structure in Go 1.7
by rcarmo on Tuesday August 16, 2016 @04:41AM
(#12296226)
It's brittle and confusing nonetheless. Having to set up Go on all the machines I use is a pain I could do without.
Re:Looking at your program’s structure in Go 1.7
by mixedCase on Tuesday August 16, 2016 @12:05PM
(#12298349)
How many machines do you develop in? go getting and ln -s in your code folder isn't exactly an ardous, confusing task.
Re:Looking at your program’s structure in Go 1.7
by themartorana on Tuesday August 16, 2016 @07:08AM
(#12296625)
Then don't? This is just being opinionated in the other direction and declaring yours the right one.
Re:Looking at your program’s structure in Go 1.7
by stouset on Tuesday August 16, 2016 @12:39PM
(#12298622)
This is inane. The approach GP is talking about lets any developer manage the space above their project however they care to. The `GOPATH` approach forces this one structure upon you.
It's like arguing that marriage equality violates your right to believe a marriage is between one man and one woman. One side is arguing that folks should be able to decide what's best for themselves, the other is saying it must be their way. One of these perspectives forces their preferences on the other. And it's not the GP.
Re:Looking at your program’s structure in Go 1.7
by stcredzero on Tuesday August 16, 2016 @02:14PM
(#12299359)
The `GOPATH` approach forces this one structure upon you.
That's basically the point.
It's like arguing that marriage equality violates your right to believe a marriage is between one man and one woman.
No, it's more like the Pythonic "There's one way to do it."
Re:Looking at your program’s structure in Go 1.7
by duai on Tuesday August 16, 2016 @03:44PM
(#12300074)
> No, it's more like the Pythonic "There's one way to do it."
Nope, because it's "There should be one obvious way to do it." and you can still do the non-obvious way if you prefer.
It doesn't force anything upon you.