Gho*_*orm 4 git package go file-structure gopath
$ go build/bin/pkg/src
让我更详细地说明一下我的情况:
.../user/go/...
projects
| project-a
| project-b
| docs
| media
| scrum
| project-b <-- git repo containg Go structure
| .git
| gitignore.txt
| bin
| pkg
| src
| custom-package-a
| | foo.go
| custom-package-b
| | bar.go
| | main.go
| project-c
projects
projects/project-b/project-b
即使构建正确,典型 Go 项目的文件结构也应该是这样吗?
user/go
我可以包括
package-a.GetThing()package-b.GetThing()
projects/project-b/project-b/go buildmain.go
go buildgo buildbin