YoVDO

How to Write Beautiful Golang CLI

Offered By: Cloud Native Skunkworks via YouTube

Tags

Go Courses Programming Courses Command Line Interface Courses Golang Courses

Course Description

Overview

Discover the definitive guide to building robust and extensible Golang-based Command Line Interfaces (CLIs) in this comprehensive 30-minute tutorial video. Learn how to create a CLI that multiple teams can contribute to, starting from theory and progressing to practical implementation. Follow along as the instructor demonstrates the creation of a successful CLI used by hundreds of engineers. Explore topics such as multi-contributor CLI development, Cobra and Cobra-CLI usage, structuring for extensibility, building functionality, and implementing Viper configuration. Gain insights into common mistakes and best practices while working with example code. Access the source code on GitHub for further study and experimentation.

Syllabus

Introduction
Multi-contributor CLI
Cobra
Cobra-CLI
Ready to build!
Structuring for extensibility
Moving new commands
Here is the trick...
Mistakes are good
Structured subcommand
Building some functionality
First working command
Disk usage command
Recap
Viper configuration
Implementing viper in an existing project
Conclusion


Taught by

Cloud Native Skunkworks

Related Courses

Kubernetes Operators Advanced
IBM via Cognitive Class
Kubernetes Operators Intermediate
IBM via Cognitive Class
Concepts in Golang - Loops, decision statements and function
Coursera Project Network via Coursera
Advanced Golang Concepts
Edureka via Coursera
Разработка веб-сервисов на Golang, часть 2
Moscow Institute of Physics and Technology via Coursera