Having trouble reading this email? View it in your browser.
New This Week

Powerful Command-Line Applications in Go »

Write your own fast and reliable cross-platform command-line tools with the Go programming language. Go might be the fastest—and perhaps the most fun—way to automate tasks, analyze data, parse logs, talk to network services, or address other systems requirements. Create all kinds of command-line tools that work with files, connect to services, and manage external processes, all while using tests and benchmarks to ensure your programs are fast and correct.

Recently Released:

 

Best Sellers:

Make sure you haven't missed anything!

  1. Modern Asynchronous JavaScript
  2. Hands-on Rust
  3. Programming Phoenix LiveView
  4. The Pragmatic Programmer, 20th Anniversary Edition
  5. Python Testing with pytest, Second Edition

See all best sellers...

Command-Line Apps in Go
December 08, 2021

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

Go is a modern programming language that combines the reliability of compiled languages with the ease of use and flexibility of dynamic typed languages. With Go, you can develop cross-platform command-line tools that are fast and reliable. 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.

Now in print: Use Coupon Code "RGGOCOMPLETE" for 40% off the ebook at pragprog.com/titles/rggo. For the paperback edition, please support your local independent bookstore.

You Could Be a Published Author

Is there a tech topic you are deeply passionate about and want to share with the rest of us? You could become a published Pragmatic Bookshelf author! Take a look at our pragprog.com/become-an-author page for details, including our 50% royalty (yes, for real!) and world-class development editors.

Remember, the best way to tell the future is to create it.

Don't Get Left Out

Are your friends jealous that you get these spiffy email newsletters and they don't? Clue them in that all they need to do is sign up at pragprog.com.

Tell your friends! Tweet this

Follow us on Twitter for the latest news, commentary, and occasional discounts: @pragprog, Andy Hunt @PragmaticAndy.

Thanks for your continued support,

By Professional Developers, for Professional Developers
PragProg.com

Sent by the Pragmatic Programmers, LLC. • 9650 Strickland Rd Ste 103-255• Raleigh NC 27615