【发布时间】:2017-07-31 01:57:42
【问题描述】:
如果我的 Golang 包名称是以下之一,是否可以构建(安装、go get 等)名称为 foobar 的可执行文件:
github.com/username/go-foobargithub.com/username/foobar-tools
并且在包根目录中有main.go?
【问题讨论】:
-
go build -o foobar github.com/username/go-foobar? -
named files must be .go files: Order of arguments matters with go build -o
标签: go build package naming-conventions