Skip to content
/ go-template Public template

My own template repository for cli apps with Go

License

Notifications You must be signed in to change notification settings

Yakiyo/go-template

Repository files navigation

go-template

ci GitHub go.mod Go version (subdirectory of monorepo) GitHub tag (with filter)

My own template repository for cli apps with Go

Some of the code structure and ideas were taken from metafates/go-template.

Features

  • use cobra for command line
  • integrated viper with cobra to read config options first from cli, then use config files, else use defaults
  • separate packages for each stuff for easier modification
  • pretty logging with charmbracelet/log
  • allow setting logging levels from cli
  • allow enabling/disabling colors from cli
  • use just for running tasks