Buy New
-13%
$40.05$40.05
FREE delivery Monday, April 27
Advertisement
Advertisement
Ships from: Amazon.com Sold by: Amazon.com
Used - Very Good
$26.68$26.68
$3.98 delivery Wednesday, April 29
Advertisement
Advertisement
Ships from: World of Books (previously glenthebookseller) Sold by: World of Books (previously glenthebookseller)
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Powerful Command-Line Applications in Go: Build Fast and Maintainable Tools 1st Edition
Purchase options and add-ons
Whether you want to automate tasks, analyze data, parse logs, talk to network services, or address other systems requirements, writing your own command-line tool may be the fastest - and perhaps the most fun - way to do it. The Go programming language is a great choice for developing tools that are fast, reliable, and cross-platform. Create command-line tools that work with files, connect to services, and even manage external processes, all while using tests and benchmarks to ensure your programs are fast and correct.
When you want to develop cross platform command-line tools that are fast and reliable, use Go, a modern programming language that combines the reliability of compiled languages with the ease of use and flexibility of dynamic typed languages. Work through practical examples to develop elegant and efficient tools by applying Go's rich standard library, its built in support for concurrency, and its expressive syntax. Use Go's integrated testing capabilities to automatically test your tools, ensuring they work reliably even across code refactoring.
Develop CLI tools that interact with your users by using common input/output patterns, including environment variables and flags. Handle files to read or persist data, and manipulate paths consistently in cross-platform scenarios. Control processes and handle signals, and use a benchmark driven approach and Go's concurrency primitives to create tools that perform well. Use powerful external libraries such as Cobra to create modern and flexible tools that handle subcommands, and develop tools that interact with databases, APIs, and network services. Finally, leverage what you learned by tackling additional challenges at the end of each chapter.
What You Need:
Go 1.8 or higher, an internet connection to download the example files and additional libraries, and a text editor to write your programs.- ISBN-10168050696X
- ISBN-13978-1680506969
- Edition1st
- PublisherPragmatic Bookshelf
- Publication dateJanuary 11, 2022
- LanguageEnglish
- Dimensions7.5 x 1 x 9.25 inches
- Print length510 pages
Frequently bought together

Deals on related products
Customers also bought or read
- Network Programming with Go: Code Secure and Reliable Network Services from Scratch
Paperback$35.58$35.58FREE delivery May 3 - 8 - Go Programming Language, The (Addison-Wesley Professional Computing Series)
Paperback$32.52$32.52Delivery Mon, Apr 27 - Mastering Go: Leverage Go's expertise for advanced utilities, empowering you to develop professional software
Paperback$41.90$41.90FREE delivery Apr 30 - May 1 - System Programming Essentials with Go: System calls, networking, efficiency, and security practices with practical projects in Golang
Paperback$27.36$27.36Delivery Tue, Apr 28 - Concurrency in Go: Tools and Techniques for Developers
Paperback$46.76$46.76FREE delivery Mon, Apr 27 - Go by Example: Programmer's guide to idiomatic and testable code
Paperback$42.99$42.99FREE delivery Mon, Apr 27 - tmux 3: Productive Mouse-Free Development (Pragmatic Programmers)
Paperback$34.06$34.06Delivery Mon, Apr 27 - Writing a C Compiler: Build a Real Programming Language from Scratch
Paperback$42.43$42.43FREE delivery Mon, Apr 27 - Command-Line Rust: A Project-Based Primer for Writing Rust CLIs
Paperback$40.02$40.02FREE delivery Mon, Apr 27 - Systems Performance (Addison-Wesley Professional Computing Series)#1 Best SellerComputer Performance Optimization
Paperback$65.95$65.95FREE delivery Mon, Apr 27 - Beyond Cracking the Coding Interview: Pass Tough Coding Interviews, Get Noticed, and Negotiate Successfully (Cracking the Interview & Career)
Paperback$41.89$41.89FREE delivery Tue, Apr 28 - The Pragmatic Programmer: Your Journey To Mastery, 20th Anniversary Edition (2nd Edition)#1 Best SellerSoftware Testing
Hardcover$41.64$41.64FREE delivery Mon, Apr 27 - Operating Systems: Three Easy Pieces#1 Best SellerComputer Operating Systems Theory
Paperback$28.27$28.27Delivery Tue, Apr 28 - Programming: Principles and Practice Using C++ (C++ In-depth)
Paperback$56.49$56.49FREE delivery Mon, Apr 27 - Accelerate: The Science of Lean Software and DevOps: Building and Scaling High Performing Technology Organizations
Paperback$13.25$13.25Delivery Mon, Apr 27 - Effective C, 2nd Edition: An Introduction to Professional C Programming
Paperback$27.88$27.88Delivery Mon, Apr 27 - Learning Zig: A reimagined introduction to low-level programming with Zig
Paperback$34.99$34.99Delivery Tue, Apr 28 - Zero To Production In Rust: An introduction to backend development
Paperback$49.99$49.99FREE delivery Tue, Apr 28
From the Publisher
From the Preface
Whether you’re a system administrator, a network engineer, a DevOps specialist, or any other modern IT professional, you use command-line applications to automate your environment and increase your productivity. These tools play an increasingly critical role in your infrastructure and therefore require the same level of governance as other software components. In this book, you’ll use the Go programming language to develop command-line applications that are maintainable, cross-platform, fast, and reliable.
Go is a modern programming language that combines the reliability provided by the compilation process with the flexibility of dynamic typing. Go’s ease of use and flexibility in prototyping new ideas make it a great choice for writing command-line tools. At the same time, Go allows the implementation of more complex scenarios by providing features like type safety, cross-compilation, testing, and benchmarks.
Many popular command-line tools you use are developed with Go. These include Docker, Podman, Kubectl, Openshift CLI, Hugo, and Terraform. If you’ve ever wondered how you can make your own tools like these, this book will show you how.
You’ll apply your knowledge of Go’s basic syntax and also employ more advanced concepts to develop several command-line applications. You can use these applications to automate tasks, analyze data, parse logs, talk to network services, or address other system requirements. You’ll also employ different testing and benchmarking techniques to ensure your programs are fast and reliable.
Editorial Reviews
About the Author
Product details
- Publisher : Pragmatic Bookshelf
- Publication date : January 11, 2022
- Edition : 1st
- Language : English
- Print length : 510 pages
- ISBN-10 : 168050696X
- ISBN-13 : 978-1680506969
- Item Weight : 2.31 pounds
- Dimensions : 7.5 x 1 x 9.25 inches
- Best Sellers Rank: #998,140 in Books (See Top 100 in Books)
- #174 in Software Design Tools
- #739 in Computer Programming Languages
- #981 in Software Development (Books)
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Related products with free delivery on eligible orders
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on April 20, 2025Format: PaperbackVerified PurchaseI got a lot out of this book as a seasoned Go developer. I also appreciate the clear and concise writing, and the content should stay relevant for a long time.
The author also goes into general software engineering guidance including documentation, testing and maintenance.
- Reviewed in the United States on February 16, 2022Format: PaperbackVerified PurchaseI've had this book on pre-order since August 2021, and I have to say it's lived up to the expectations that PragProg has set with their other books.
I've already incorporated a few new tricks into my actual work. The writing style, and code-along examples are great, and the exercises range from slightly challenging to easy. (The author ensure you learned what is needed to solve them).
- Reviewed in the United States on April 22, 2022Format: PaperbackVerified PurchaseRicardo picks several significant CLI tasks and then explores how to do them in clean Go. He presents as a mentor; explaining the what and why of each bit of Go used. Each chapter was educational and useful, and the exercises give the option to explore even deeper. Highly recommended!
- Reviewed in the United States on January 27, 2022Format: PaperbackVerified PurchaseThis book is incredibly well-written and very practical - the examples are really a joy to replicate! I also appreciate how the author emphasizes proper Go testing conventions - and uses those for every example. Great work!
- Reviewed in the United States on December 16, 2022Format: PaperbackVerified PurchaseThis book gets no more than a zero rating from me :-(
Top reviews from other countries
N StokerReviewed in the United Kingdom on March 2, 20265.0 out of 5 stars Learn Go
Format: PaperbackVerified PurchaseGood explanations of Go programming techniques
Cliente KindleReviewed in Brazil on November 28, 20225.0 out of 5 stars What a challenge ! Very good ! (not for beginners)
Format: KindleVerified PurchaseI haven't read it fully yet, I'm on the fourth chapter of reading. I'm loving it. It is a book written so intelligently and motivating that you read the chapter and by the end of the chapter you will be challenged to improve the application. In a way (at least it happened to me) it forces you to pay close attention to make the challenges work. This book is my third serious read in the GO language - and it's a book to be "savoured" for the challenges it presents. I recommend it to anyone who already mastered the basics of the GO language. Congratulations to the Author for the care of the examples and challenges proposed!
Josh WestonReviewed in Canada on September 11, 20225.0 out of 5 stars Fantastic book for any level of Go developer
Format: PaperbackVerified PurchaseThis is the best book on Go that I have read, and I have a stack of them. The applications you build are fun, engaging, and relevant, and each chapter ends with suggested exercises to solidify your understanding. I have been developing in Go for a few years and am really enjoying how the author has tied together so many language concepts and design patterns to showcase how the language can be used for building CLI applications. Congratulations to the author on writing a fantastic Go resource; don't hesitate in buying this one - you are guaranteed to pickup some new tricks regardless of your skill level. I hope the author continues creating resources like this.
Client AmazonReviewed in France on April 16, 20225.0 out of 5 stars A lot better than I thought
Format: KindleVerified PurchaseThe book is very well written, very clear. It basically walks you through the creation of 10 different tools step by step.
Khawar Ashfaq AhmedReviewed in Germany on October 18, 20225.0 out of 5 stars As always mind blowing experience
Format: PaperbackVerified PurchaseThe seller is really great. Highly professional. The delivery is unbelievable fast. The book is with super great substance which I need in my research work. I will prefer to buy books from the same seller.























