Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Building Modern CLI Applications in Go
Building Modern CLI Applications in Go

Building Modern CLI Applications in Go: Develop next-level CLIs to improve user experience, increase platform usage, and maximize production

Arrow left icon
Profile Icon Marian Montagnino
Arrow right icon
₱579.99 ₱1836.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7 (14 Ratings)
eBook Mar 2023 406 pages 1st Edition
eBook
₱579.99 ₱1836.99
Paperback
₱2296.99
Subscription
Free Trial
Arrow left icon
Profile Icon Marian Montagnino
Arrow right icon
₱579.99 ₱1836.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7 (14 Ratings)
eBook Mar 2023 406 pages 1st Edition
eBook
₱579.99 ₱1836.99
Paperback
₱2296.99
Subscription
Free Trial
eBook
₱579.99 ₱1836.99
Paperback
₱2296.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Building Modern CLI Applications in Go

Part 1: Getting Started with a Solid Foundation

This part covers the Command-Line Interface (CLI) and its resurgence in popularity. The history, anatomy, and design principles of the CLI are discussed, with a focus on UNIX’s philosophy and the benefits of using Go to build a CLI. The guide offers a step-by-step approach to building a new application, including code structure, domain-driven design, and an example audio metadata CLI application. Hands-on learning is encouraged with the example audio metadata CLI application, and popular frameworks, such as Cobra and Viper, are explored to speed up the development process. Overall, this part provides a comprehensive overview of the CLI and its practical applications in modern programming, offering valuable guidance to developers looking to build efficient and effective CLI applications.

This part has the following chapters:

  • Chapter 1, Understanding CLI Standards
  • Chapter 2, Structuring Go Code for CLI Applications...
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Discover how Go enables the development of elegant and intuitive CLIs
  • Explore a range of CLI development aspects and pick up a vast array of best practices
  • Create engaging and user-friendly interfaces and learn how to distribute them

Description

Although graphical user interfaces (GUIs) are intuitive and user-friendly, nothing beats a command-line interface (CLI) when it comes to productivity. Many organizations settle for a GUI without searching for alternatives that offer better accessibility and functionality. If this describes your organization, then pick up this book and get them to rethink that decision. Building Modern CLI Applications in Go will help you achieve an interface that rivals a GUI in elegance yet surpasses it in high-performance execution. Through its practical, step-by-step approach, you’ll learn everything you need to harness the power and simplicity of the Go language to build CLI applications that revolutionize the way you work. After a primer on CLI standards and Go, you’ll be launched into tool design and proper framework use for true development proficiency. The book then moves on to all things CLI, helping you master everything from arguments and flags to errors and API calls. Later, you’ll dive into the nuances of empathic development so that you can ensure the best UX possible, before you finish up with build tags, cross-compilation, and container-based distribution. By the end of this UX book, you’ll be fully equipped to take the performance and flexibility of your organization’s applications to the next level.

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.

What you will learn

  • Master the Go code structure, testing, and other essentials
  • Add a colorful dashboard to your CLI using engaging ASCII banners
  • Use Cobra, Viper, and other frameworks to give your CLI an edge
  • Handle inputs, API commands, errors, and timeouts like a pro
  • Target builds for specific platforms the right way using build tags
  • Build with empathy, using easy bug submission and traceback
  • Containerize, distribute, and publish your CLIs quickly and easily

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 10, 2023
Length: 406 pages
Edition : 1st
Language : English
ISBN-13 : 9781804613696
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Mar 10, 2023
Length: 406 pages
Edition : 1st
Language : English
ISBN-13 : 9781804613696
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 6,378.97
Effective Concurrency in Go
₱2040.99
Building Modern CLI Applications in Go
₱2296.99
Functional Programming in Go
₱2040.99
Total 6,378.97 Stars icon
Banner background image

Table of Contents

20 Chapters
Part 1: Getting Started with a Solid Foundation Chevron down icon Chevron up icon
Chapter 1: Understanding CLI Standards Chevron down icon Chevron up icon
Chapter 2: Structuring Go Code for CLI Applications Chevron down icon Chevron up icon
Chapter 3: Building an Audio Metadata CLI Chevron down icon Chevron up icon
Chapter 4: Popular Frameworks for Building CLIs Chevron down icon Chevron up icon
Part 2: The Ins and Outs of a CLI Chevron down icon Chevron up icon
Chapter 5: Defining the Command-Line Process Chevron down icon Chevron up icon
Chapter 6: Calling External Processes and Handling Errors and Timeouts Chevron down icon Chevron up icon
Chapter 7: Developing for Different Platforms Chevron down icon Chevron up icon
Part 3: Interactivity and Empathic Driven Design Chevron down icon Chevron up icon
Chapter 8: Building for Humans versus Machines Chevron down icon Chevron up icon
Chapter 9: The Empathic Side of Development Chevron down icon Chevron up icon
Chapter 10: Interactivity with Prompts and Terminal Dashboards Chevron down icon Chevron up icon
Part 4: Building and Distributing for Different Platforms Chevron down icon Chevron up icon
Chapter 11: Custom Builds and Testing CLI Commands Chevron down icon Chevron up icon
Chapter 12: Cross-Compilation across Different Platforms Chevron down icon Chevron up icon
Chapter 13: Using Containers for Distribution Chevron down icon Chevron up icon
Chapter 14: Publishing Your Go Binary as a Homebrew Formula with GoReleaser Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7
(14 Ratings)
5 star 78.6%
4 star 14.3%
3 star 7.1%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Ankit Jun 08, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Building Modern CLI Applications in Go” by Marian Montagnino is a comprehensive guide to developing command-line interfaces (CLIs) using the Go programming language. The book covers everything from the basics of CLI design to advanced topics such as designing useful terminal dashboards and building/distributing for different platforms. With clear explanations and practical examples, this book is a valuable resource for anyone looking to improve their skills in building modern CLIs in Golang. I would definitely recommend this book to others.
Amazon Verified review Amazon
Placeholder Jun 05, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Building Modern CLI Applications in Go" serves as an exceptional guide for anyone keen to deepen their understanding of CLI development using Go. It adeptly intertwines theory with practice, encouraging users to simultaneously learn and apply concepts that boost CLI user experience, usage, and production efficiency. A must-read for aspiring Go developers!
Amazon Verified review Amazon
E. Moses Jun 05, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
"Building Modern CLI Applications in Go" is a gem.This comprehensive guide offers a deep dive into the world of command-line interface (CLI) applications, making it a highly valuable resource for both intermediate and experienced developers.I particularly admire her ability to simplify complex topics and make them easily comprehensible. Her explanation of Go language fundamentals and the nuances of CLI development is clear, concise, and engaging, making the learning curve manageable.Whether you're new to Go or an experienced developer looking to deepen your understanding of CLI applications, this book is a worthwhile investment. It offers a perfect blend of theoretical knowledge and practical skills, setting you up for success in your programming journey.
Amazon Verified review Amazon
Ash & Max Jun 05, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Disclaimer, I received a free copy of the book for this review.This book is an excellent resource for anyone interested in developing command-line applications using Go. The book offers clear explanations, practical examples, and hands-on exercises that make it easy for beginners and experienced developers alike to grasp the concepts. With its comprehensive approach and valuable insights, this book is a must-have for anyone seeking to build high-quality CLI applications. Highly recommended!
Amazon Verified review Amazon
Henrique Vicente May 17, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Disclaimer: I have many years of experience writing CLI tools and know the author from conferences.In this book, Marian put out an excellent work that will undoubtedly help people looking for a practical guide on developing and distributing a CLI tool using Go.I have many years of experience writing CLI tools using Go, and it was enjoyable to read this book as I got to think about different points of view on topics such as human interaction and also learn some stuff that I am used to doing differently, or haven't done much (such as TUI - text-based user interface).Suggestions for future reviews:* Add a section on code signing in the chapter about releasing* A glossary might help (example: what is man page)* Where the Kubernetes compiler is mentioned, maybe another simpler tool (more accessible for new developers to relate to) could be mentioned instead* I find Cobra the right choice for this book and for most people starting with CLIs, but adding a few examples using the standard library would be neat to show what to do when you need just something simple
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.