Repo demonstrates how to use tools.go
for managing Go CLI tools on repo/project level.
Key artifacts to check:
Makefile
tools/
folder.bin/
folder (generate bymake
)pkg/magic/magic.go
- seego:generate
comment
Please check my blog post Manage Go CLI tools via Go modules and tools.go that contains much more details.