I'm developing a small tool with Go. And recently, I noticed that the tool needs to be invoked from a shell script, because it's using shell function.
Assume my tool is called atool
. So, go build
generates a binary atool
, and my tool has a Go structure as github.com/myaccount/atool
. Now, i want to build atool-cli
binary with go build
, and invoke it from shell script atool
. How can I achieve this?
The only way coming in my mind is change go structure as github.com/myaccuont/atool-cli
. But I don't want to do this because the already announced, and also, the path seems a bit funny name.