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.

Intermediate

139 Lessons

30h

Certificate of Completion

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.

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

86 Playgrounds
13 Quizzes

This course includes

86 Playgrounds
13 Quizzes

Course Overview

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 vario...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

What You'll Learn

An understanding of the fundamentals of the Go programming language, including its syntax and data types

Show more

Course Content

1.

Introduction

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

First Command-Line Program in Go

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

Interacting with Users

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

Working with Files in Go

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

Navigating the File System

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.

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Evan Dunbar

ML Engineer

Carlos Matias La Borde

Software Developer

Souvik Kundu

Front-end Developer

Vinay Krishnaiah

Software Developer

Eric Downs

Musician/Entrepeneur

Kenan Eyvazov

DevOps Engineer

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Hands-on Learning Powered by AI

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

Instant 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.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor