HomeCoursesPowerful Command-Line Applications in Go

Intermediate

30h

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.
Join 2.7M developers at
Overview
Content
Reviews
Related
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.
Go is a programming language that combines the advantages of static typing with the flexibility of dynamic typing. Its simplicit...Show More

WHAT YOU'LL LEARN

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
An understanding of the fundamentals of the Go programming language, including its syntax and data types

Show more

Content

1.

Introduction

2 Lessons

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

3.

Interacting with Users

14 Lessons

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

4.

Working with Files in Go

12 Lessons

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

5.

Navigating the File System

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

14 Lessons

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

7.

Controlling Processes

14 Lessons

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

8.

Using the Cobra CLI Framework

16 Lessons

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

9.

Talking to REST API

16 Lessons

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

10.

Developing Interactive Terminal Tools

12 Lessons

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

11.

Persisting Data in a SQL Database

9 Lessons

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

12.

Distributing Tool

8 Lessons

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

13.

Appendix

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.
Developed by MAANG Engineers
Every Educative lesson is designed by a team of ex-MAANG software engineers and PhD computer science educators, and developed in consultation with developers and data scientists working at Meta, Google, and more. Our mission is to get you hands-on with the necessary skills to stay ahead in a constantly changing industry. No video, no fluff. Just interactive, project-based learning with personalized feedback that adapts to your goals and experience.

Trusted by 2.7 million developers working at companies

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

AI Prompt

Build prompt engineering skills. Practice implementing AI-informed solutions.

Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

Explain with AI

Select any text within any Educative course, and get an instant explanation — without ever leaving your browser.

AI Code Mentor

AI Code Mentor helps you quickly identify errors in your code, learn from your mistakes, and nudge you in the right direction — just like a 1:1 tutor!

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