Book

Building Modern CLI Applications in Go

A masterclass in the end-to-end creation of elegant, user-friendly, and powerful CLIs, Building Modern CLI Applications in Go will see you change the game for your organization. With its comprehensive, hands-on coverage of how exactly to forge impressively functional interfaces using Go, you’ll never have to compromise with a GUI again.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

13h32m

Language

English

About Book

Who Is This Book For?

This book is for beginner- and intermediate-level Golang developers who take an interest in developing CLIs and enjoy learning by doing. You’ll need an understanding of basic Golang programming concepts, but will require no prior knowledge of CLI design and development. This book helps you join a community of CLI developers and distribute within the popular Homebrew package management tool.

Book content

chapters 13h32m total length

Understanding CLI Standards

Structuring Go Code for CLI Applications

Design your tool and its purpose

Popular frameworks in Go to speed up and enhance CLI development

Processing Different Types of Input via Arguments and Flags

Calling External Processes and API commands and Handle Timeouts, and Error Handling

Developing for Different Platforms

Being Clear, Concise and Consistent with CLIs

Empathic Side of Development

Interactivity with Prompts and Terminal Dashboards

Customizing Go Binaries with Build Tags

Cross Compilation Across Different Platforms

Using Containers for Distribution

Publish your Go binary as a Homebrew Formula with GoReleaser

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required