On 24-02-2018, Amnon Baron Cohen wrote: > ------=_Part_9094_478136164.1519461749739 > Content-Type: multipart/alternative; > boundary="----=_Part_9095_482511421.1519461749739" > > ------=_Part_9095_482511421.1519461749739 > Content-Type: text/plain; charset="UTF-8" > > > > On Friday, 23 February 2018 >> >> >> I work with GOPATH per project. >> >> Then I use to give them a one word path directly under src: >> >> $GOPATH/src/myapp >> >> > Go is a highly opinionated language assumes that you lay out your code as > described in https://golang.org/doc/code.html > If you decide to do things differently (by having 'simpler' paths > which do not correspond to the VCS location of your code on the net), > then you end up having to fight the go tools, rather than have them > work for you. >
I don't think it's not recommended : https://golang.org/doc/install#testing Next, make the directory src/hello inside your workspace, and in that directory create a file named hello.go $ cd $HOME/go/src/hello $ go build https://blog.golang.org/organizing-go-code If you don't use a hosted source repository, choose some unique prefix such as a domain, company, or project name. As an example, the import path of all Google's internal Go code starts with the string "google". -- William -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.