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.
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
Simply install the browser extension and click to launch GetVM directly from your sidebar.
Select Your Playground
Choose your OS, IDE, or app from our playground library and launch it instantly.
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.