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


Powerful Command-Line Applications in Go: Build Fast and Maintainable Tools
Author: Ricardo Gerardi
Publisher finelybook 出版社:‏ Pragmatic Bookshelf; 1st edition (January 4,2022)
Language 语言: English
Print Length 页数: 250 pages
ISBN-10: 168050696X
ISBN-13: 9781680506969

Book Description


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 Author: 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 Author: 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 Author: tackling additional challenges at the end of each chapter.

下载地址 Download
解决验证以访问链接!
打赏
未经允许不得转载:finelybook » Powerful Command-Line Applications in Go: Build Fast and Maintainable Tools

评论 抢沙发

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫

微信扫一扫