Initializing the CLI with Cobra
Learn how to handle command-line parameters and configuration files by using Cobra.
Now that the interface and the back-end code are ready, we need a way to launch our application. We’ll use the Cobra framework again to have a standard way to handle command-line parameters and configuration files.
Switch back to our application’s root directory and use the Cobra framework generator.
Get hands-on with 1400+ tech skills courses.