A minimal template for building command-line tools in Go using:
- Cobra – for CLI structure
- fatih/color – for colourful terminal output
git clone https://github.com/yourusername/cobra-template.git
cd cobra-template
go mod tidygo run main.go
go run main.go hello # An example commandcobra-template/
├── cmd/ # Cobra commands where new ones can be added
├── pkg/logger/ # Logger that uses fatih/color
├── main.go # Application entrypoint
