HomeCoursesPowerful Command-Line Applications in Go
AI-powered learning
Save

Powerful Command-Line Applications in Go

Gain insights into Go’s syntax and advanced concepts. Learn about building efficient CLI tools, automating tasks, data processing, and ensure robustness with testing and benchmarking techniques.

139 Lessons
30h
Updated 3 weeks ago
Join 2.9 million developers at
Join 2.9 million developers at
LEARNING OBJECTIVES
  • An understanding of the fundamentals of the Go programming language, including its syntax and data types
  • A working knowledge of building command-line applications using Go
  • An understanding of command-line arguments, input and output, error handling, and testing
  • Familiarity with designing and implementing real-world applications using Go

Learning Roadmap

139 Lessons13 Quizzes

1.

Introduction

Introduction

Get familiar with developing Go-based command-line tools and managing dependencies with Go modules.

2.

First Command-Line Program in Go

First Command-Line Program in Go

Get started with building, testing, and enhancing a basic word counter in Go.

3.

Interacting with Users

Interacting with Users

14 Lessons

14 Lessons

Examine building a flexible, user-friendly CLI to-do tool using Go’s functions and packages.

4.

Working with Files in Go

Working with Files in Go

12 Lessons

12 Lessons

Enhance your skills in file handling and testing by building a Markdown preview tool in Go.

5.

Navigating the File System

Navigating the File System

11 Lessons

11 Lessons

Take a closer look at developing and testing a file system crawler in Go with archiving and logging.

6.

Improving the Performance of CLI Tools

Improving the Performance of CLI Tools

14 Lessons

14 Lessons

Follow the process of enhancing Go CLI tools with benchmarking, profiling, and concurrency.

7.

Controlling Processes

Controlling Processes

14 Lessons

14 Lessons

Master the steps to automate CI tasks, handle errors, test commands, and manage output effectively.

8.

Using the Cobra CLI Framework

Using the Cobra CLI Framework

16 Lessons

16 Lessons

Step through developing a Go-based CLI tool using the Cobra framework, from initialization to testing.

9.

Talking to REST API

Talking to REST API

16 Lessons

16 Lessons

Walk through building and testing a Go REST API server and client for CRUD operations.

10.

Developing Interactive Terminal Tools

Developing Interactive Terminal Tools

12 Lessons

12 Lessons

Go hands-on with developing interactive CLI tools, focusing on a Pomodoro timer.

11.

Persisting Data in a SQL Database

Persisting Data in a SQL Database

9 Lessons

9 Lessons

Apply your skills to persisting Pomodoro app data in SQLite with testing, summaries, and visualizations.

12.

Distributing Tool

Distributing Tool

8 Lessons

8 Lessons

Gain tools for cross-OS notifications, customized builds, and process management in Go.

13.

Appendix

Appendix

4 Lessons

4 Lessons

Explore Go tracer for performance insights, SQLite installation, Go-SQLite integration, and containerized app compilation.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Author NamePowerful Command-Line Applications inGo
Developed by MAANG Engineers
ABOUT THIS COURSE
Go is a programming language that combines the advantages of static typing with the flexibility of dynamic typing. Its simplicity and prototyping capabilities make it an excellent choice for building command-line tools. It also offers features such as type safety, cross-compilation, testing, and benchmarking, enabling developers to handle complex scenarios. You’ll start by learning the foundations in Go’s fundamental syntax and progressively delve into advanced concepts. Then, you’ll learn to develop various command-line applications that can automate tasks, process data, parse logs, interact with network services and fulfill system requirements. In addition, the course also covers different testing and benchmarking techniques to ensure the speed and reliability of programs. After taking this course, you’ll be able to automate your work and enhance productivity. You’ll also be able to utilize the Go programming language to develop robust, cross-platform, efficient, and maintainable CLI applications.
ABOUT THE AUTHOR

The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.

Learn more about The

Trusted by 2.9 million developers working at companies

These are high-quality courses. Trust me the price is worth it for the content quality. Educative came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks

A

Anthony Walker

@_webarchitect_

Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!

E

Evan Dunbar

ML Engineer

You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it.

S

Software Developer

Carlos Matias La Borde

I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site

S

Souvik Kundu

Front-end Developer

Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content.

V

Vinay Krishnaiah

Software Developer

Built for 10x Developers

No Passive Learning
Learn by building with project-based lessons and in-browser code editor
Learn by Doing
Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go
Learn by Doing
Future-proof Your Career
Get hands-on with in-demand skills
Learn by Doing
AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"
Learn by Doing
Learn by Doing
MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies
Learn by Doing

Free Resources

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath