任何通过go get将可执行文件与库一起安装的方法吗?

It took me sometime to have some basic understandings of Go's package structure & came up with this in my project:

</github.com/myproject/demo/
▸ config/
▸ crypto/
▸ demo/
    executable.go
  deps.go
  LICENSE
  README.md
  demo.go

I can now have the same name for the libary & binary, but not in the way I want. Binary executable has to be installed separately via go get like "go get github.com/myproject/demo/demo", is there anyway to install the binary executable via single go get like "go get github.com/myproject/demo"?

I believe you can do:

go get github.com/myproject/demo/...

The ellipsis (...) means all sub directories

I'm pretty sure this will install all executables and libraries in your "demo" repository