Separating out binary CLI logic form the main function is a common pattern for allowing derivative binaries without resorting to forks of the main.go. For example, 'github.com/facebook/augmented-traffic-control/cmd/atcd/cli' is now a reusable library that can be imported and used within a custom binary:
Separating out binary CLI logic form the main function is a common pattern for allowing derivative binaries without resorting to forks of the main.go. For example, 'github.com/facebook/augmented-traffic-control/cmd/atcd/cli' is now a reusable library that can be imported and used within a custom binary: