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

Computer Vision: The Fundamentals
University of California, Berkeley via Coursera
Programming Languages
University of Virginia via Udacity
Learn to Program: Crafting Quality Code
University of Toronto via Coursera
Computational Photography
Georgia Institute of Technology via Coursera
Algorithms: Design and Analysis, Part 2
Stanford University via Coursera