You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Official Go documentation specifies workspace hierarchy whereas here it's about project hierarchy. That is your project directory is inside workspace directory.
Read this part carefully.
Don't confuse the project level /src directory with the /src directory Go uses for its workspaces as described in How to Write Go Code. The $GOPATH environment variable points to your (current) workspace (by default it points to $HOME/go on non-windows systems). This workspace includes the top level /pkg, /bin and /src directories. Your actual project ends up being a sub-directory under /src, so if you have the /src directory in your project the project path will look like this: /some/path/to/workspace/src/your_project/src/your_code.go.
Hey,
I was wonderin what you think about the official Go documentation, which recommends creating a
src
folder, whereas you tell us not to.Here's the link: https://golang.org/doc/code.html
The text was updated successfully, but these errors were encountered: