Sponsored
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows.
Buy New
-13% $40.05
FREE delivery Monday, April 27
Ships from: Amazon.com
Sold by: Amazon.com
$40.05 with 13 percent savings
List Price: $45.95 Image
FREE delivery Monday, April 27
Or Prime members get FREE delivery Friday, April 24. Order within 2 hrs. Join Prime
Only 9 left in stock - order soon.
$$40.05 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$40.05
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
FREE return
At least one free return option available.
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$26.68
Item in very good condition! Textbooks may not include supplemental items i.e. CDs, access codes etc... Item in very good condition! Textbooks may not include supplemental items i.e. CDs, access codes etc... See less
$3.98 delivery Wednesday, April 29. Details
Or fastest delivery Monday, April 27. Details
Only 1 left in stock - order soon.
$$40.05 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$40.05
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

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.

QR code to download the Kindle App

  • Powerful Command-Line Applications in Go: Build Fast and Maintainable Tools

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Powerful Command-Line Applications in Go: Build Fast and Maintainable Tools 1st Edition

4.5 out of 5 stars (60)

{"desktop_buybox_group_1":[{"displayPrice":"$40.05","priceAmount":40.05,"currencySymbol":"$","integerValue":"40","decimalSeparator":".","fractionalValue":"05","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"U1NjmO2r3qg%2Bw4LSmsF4Q1nf7Q43pWBlwaSYdXKvNwe3A9P%2BjevtI6e7SuyC8vOHFtyouIMuniHgMBJuBWRrVyle3QgLUwpP%2BTmVVmqsQdNbuITymGyds7rKOl%2BJPcgIppYxoS8N5%2Fw12Pb0%2FHzOkg%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$26.68","priceAmount":26.68,"currencySymbol":"$","integerValue":"26","decimalSeparator":".","fractionalValue":"68","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"U1NjmO2r3qg%2Bw4LSmsF4Q1nf7Q43pWBlTftyg88omJQGHvh%2B2O%2BVJ%2FuLEXTyI%2BG8E3Feo7S9h4sWAmFHdN69%2Fdct4tVARm%2FGjhV4%2Fi2LNUGfFOVgDAhM7UXZdMY8rrSFcDzHlIHN%2FQFZk7XmHwbjVJKph96tmZzsW43%2B9PVmXOOsx29sOTakgu0hhqbDqmK%2F","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

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.
Sponsored

Frequently bought together

This item: Powerful Command-Line Applications in Go: Build Fast and Maintainable Tools
$40.05
Get it as soon as Monday, Apr 27
Only 9 left in stock - order soon.
Ships from and sold by Amazon.com.
+
$35.58
Get it as soon as Sunday, May 3
Sold by Wsdm and ships from Amazon Fulfillment.
+
$43.35
Get it as soon as Monday, Apr 27
Only 9 left in stock (more on the way).
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Some of these items ship sooner than the others.
Choose items to buy together.

Customers also bought or read

Loading...

From the Publisher

Powerful Command-Line Applications in Go

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

Ricardo Gerardi is an IT professional with over 20 years experience in large and small companies. He's currently working as Automation Consultant at Red Hat. Ricardo has been developing command line tools for a long time, for different purposes including automation, monitoring, and data analysis tools, and he has now adopted Go for all his projects.

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)
  • Customer Reviews:
    4.5 out of 5 stars (60)

About the author

Follow authors to get new release updates, plus improved recommendations.
Brian P. Hogan
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Discover more of the author’s books, see similar authors, read book recommendations and more.

Sponsored

Customer reviews

4.5 out of 5 stars
60 global ratings
Sponsored

Top reviews from the United States

  • Reviewed in the United States on April 20, 2025
    Format: PaperbackVerified Purchase
    I 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, 2022
    Format: PaperbackVerified Purchase
    I'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).
    8 people found this helpful
    Report
  • Reviewed in the United States on April 22, 2022
    Format: PaperbackVerified Purchase
    Ricardo 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!
    9 people found this helpful
    Report
  • Reviewed in the United States on January 27, 2022
    Format: PaperbackVerified Purchase
    This 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!
    9 people found this helpful
    Report
  • Reviewed in the United States on December 16, 2022
    Format: PaperbackVerified Purchase
    This book gets no more than a zero rating from me :-(
    One person found this helpful
    Report

Top reviews from other countries

  • N Stoker
    5.0 out of 5 stars Learn Go
    Reviewed in the United Kingdom on March 2, 2026
    Format: PaperbackVerified Purchase
    Good explanations of Go programming techniques
  • Cliente Kindle
    5.0 out of 5 stars What a challenge ! Very good ! (not for beginners)
    Reviewed in Brazil on November 28, 2022
    Format: KindleVerified Purchase
    I 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 Weston
    5.0 out of 5 stars Fantastic book for any level of Go developer
    Reviewed in Canada on September 11, 2022
    Format: PaperbackVerified Purchase
    This 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 Amazon
    5.0 out of 5 stars A lot better than I thought
    Reviewed in France on April 16, 2022
    Format: KindleVerified Purchase
    The book is very well written, very clear. It basically walks you through the creation of 10 different tools step by step.
  • Khawar Ashfaq Ahmed
    5.0 out of 5 stars As always mind blowing experience
    Reviewed in Germany on October 18, 2022
    Format: PaperbackVerified Purchase
    The 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.