Writing Command Line Applications in Go
47mIntermediate2024-01-18
Authors

Miki Tebeka
CEO at 353Solutions
Course details
Command line applications are used throughout the programming industry. They are easy to combine and automate, quick to use, you can use them over SSH, and you can combine several command line tools to create sophisticated workflows. And Go is an ideal language for writing command line applications—distribution is a single static executable and it’s easy to cross compile. In this course, learn how to write effective command line applications in Go. Instructor Miki Tebeka covers parsing arguments, validation, subcommands, testing, building, shipping, and much more.
Skills covered
GoHelp Desk SkillsWeb Development ToolsIT Help DeskGoogleWeb DevelopmentProgramming LanguagesSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Command-line applications in Go
- 02 - What you should know
- 03 - Using Codespaces
1. The Flag Package
- 04 - Parsing arguments
- 05 - Providing help
- 06 - Custom argument types
- 07 - Environment variables
- 08 - Subcommands
- 09 - Challenge - Writing a command-line application
- 10 - Solution - Writing a Command-line application
2. Testing
- 11 - Running commands
- 12 - Supporting redirection
- 13 - Setting environment variables
- 14 - Challenge - Write a test
- 15 - Solution - Write a test
3. Shipping Your Code
- 16 - Building static applications
- 17 - Embedding assets
- 18 - Building for multiple targets
- 19 - Getting smaller
- 20 - Adding version information
- 21 - Continuous Integration
4. Understanding Command-Line Applications
- 22 - Using the command line
- 23 - Passing arguments
- 24 - Seeking help
- 25 - Pipes and redirects
- 26 - Signals
Conclusion
- 27 - Next steps
Related courses
- Building an Ethereum Blockchain App: 9 Testing Ethereum Apps
- Blazor WebAssembly: Foundational Skills
- Learning JVM Languages: JVM, Java, Scala
- Cert Prep: LPI Linux Essentials (010-160)
- Python GUI Development with Tkinter
- Kotlin Essential Training: Functions, Collections, and I/O
- Learning Bash Scripting
- SED Essential Training