Build a command line app with Go: lolcat

flaviocopes.com

Learn how to build a practical and useful command-line tool with Go. Create a "lolcat" app that adds rainbow colors to text and works as a pipe.

Technical TutorialsGo

Introduction

In this course, you will learn how to build a command-line application with Go. The project involves creating a "lolcat" tool, which is a terminal application that adds rainbow colors to text. You will start by printing simple text, then add color, and finally, make the application work as a pipe to accept input from other programs.

screenshot

Highlights

  • Learn how to create a command-line application with Go
  • Understand how to use escape character sequences to add color to text
  • Implement a rainbow color effect using mathematical functions
  • Develop a tool that can work as a pipe to accept input from other programs

Recommendation

This course is suitable for Go beginners who want to learn how to build practical and useful command-line tools. The project is engaging and provides a good introduction to working with input/output and terminal-specific functionality in Go.

How GetVM Works

Learn by Doing from Your Browser Sidebar

Access from Browser Sidebar

Access from Browser Sidebar

Simply install the browser extension and click to launch GetVM directly from your sidebar.

Select Your Playground

Select Your Playground

Choose your OS, IDE, or app from our playground library and launch it instantly.

Learn and Practice Side-by-Side

Learn and Practice Side-by-Side

Practice within the VM while following tutorials or videos side-by-side. Save your work with Pro for easy continuity.

Explore Similar Hands-on Tutorials

Essentials of Go Programming

15
Technical TutorialsGoProgramming
Comprehensive guide to learning the Go programming language, covering fundamental concepts, best practices, and practical examples for software development.

Go for Python Programmers

12
Technical TutorialsGoPython
Learn the Go programming language with this comprehensive guide designed for experienced Python programmers. Authored by Jason McVetta, this course covers installation, setup, and key Go features.

Go Handbook | Comprehensive Guide for Software Developers

10
Technical TutorialsGoProgramming
A comprehensive guide to the Go programming language, covering essential concepts, best practices, and practical examples for software developers.

Go Succinctly | Programming Language Guide

15
Technical TutorialsGoSoftware Development
Dive into the Go programming language with Go Succinctly, a comprehensive guide covering the language's key features and applications in software development.

Go Programming | Comprehensive Tutorial for Beginners

10
Technical TutorialsGoProgramming
Learn Go programming language from scratch with this comprehensive tutorial by Tutorials Point. Covers syntax, features, and standard library for software developers.

Go Web Development Succinctly

12
Technical TutorialsGoWeb Development
A concise and practical guide to building scalable web applications using the Go programming language. Covers key topics like serving, routing, data sources, and more.

How To Code In Go | Programming Guide for Beginners & Experts

2
Technical TutorialsGoProgramming
Comprehensive guide to learning the Go programming language, authored by experienced Go developers. Covers basic syntax to advanced concepts.

Practical Go: Real world advice for writing maintainable Go programs

14
Technical TutorialsGo
Learn best practices and practical advice for writing more maintainable and effective Go code, focusing on simplicity, readability, and productivity.

Production Go | Go Programming | Building Production-Ready Apps

20
Technical TutorialsGoSoftware Development
Comprehensive guide to building and deploying production-grade Go applications. Covers best practices, tools, and techniques for software development and deployment.