Building Modern CLI Applications in Go: Develop next-level CLIs to improve user experience, increase platform usage, and maximize production
暫譯: 用 Go 建立現代 CLI 應用程式:開發下一階段的 CLI 以改善使用者體驗、增加平台使用率並最大化生產力

Montagnino, Marian

  • 出版商: Packt Publishing
  • 出版日期: 2023-03-10
  • 售價: $1,880
  • 貴賓價: 9.5$1,786
  • 語言: 英文
  • 頁數: 406
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1804611654
  • ISBN-13: 9781804611654
  • 相關分類: 使用者經驗 UX
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Evolve the humble CLI using Go and unleash the next generation of powerful, flexible, and empathy-driven interfaces

Key Features

• 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

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

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

Who this book is 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.

商品描述(中文翻譯)

進化樸實的命令列介面(CLI),使用 Go 語言,釋放下一代強大、靈活且以同理心驅動的介面

主要特點

• 發現 Go 如何促進優雅且直觀的 CLI 開發
• 探索各種 CLI 開發方面,並學習大量最佳實踐
• 創建引人入勝且使用者友好的介面,並學習如何分發它們

書籍描述

雖然圖形使用者介面(GUI)直觀且使用者友好,但在生產力方面,沒有什麼能比得上命令列介面(CLI)。許多組織滿足於使用 GUI,而不尋求提供更好可及性和功能的替代方案。如果這描述了您的組織,那麼請拿起這本書,讓他們重新考慮這個決定。

《使用 Go 建立現代 CLI 應用程式》將幫助您實現一個在優雅上可與 GUI 相媲美,但在高效執行上超越它的介面。透過實用的逐步方法,您將學習如何利用 Go 語言的力量和簡單性來構建徹底改變您工作方式的 CLI 應用程式。

在介紹 CLI 標準和 Go 之後,您將進入工具設計和正確框架使用的領域,以獲得真正的開發熟練度。接著,書中將深入探討所有與 CLI 相關的內容,幫助您掌握從參數和標誌到錯誤和 API 調用的所有知識。稍後,您將深入了解同理心開發的細微差別,以確保最佳的使用者體驗,最後將學習構建標籤、跨平台編譯和基於容器的分發。

在這本 UX 書籍結束時,您將完全具備將您組織應用程式的性能和靈活性提升到新水平的能力。

您將學到的內容

• 精通 Go 的程式碼結構、測試及其他基本要素
• 使用引人入勝的 ASCII 橫幅為您的 CLI 添加多彩的儀表板
• 使用 Cobra、Viper 和其他框架為您的 CLI 增添優勢
• 像專業人士一樣處理輸入、API 命令、錯誤和超時
• 使用構建標籤以正確的方式針對特定平台進行構建
• 以同理心進行構建,使用簡易的錯誤提交和追蹤
• 快速且輕鬆地容器化、分發和發布您的 CLI

本書適合對象

本書適合初學者和中級 Golang 開發者,他們對開發 CLI 感興趣並喜歡通過實作學習。您需要了解基本的 Golang 程式設計概念,但不需要具備 CLI 設計和開發的先前知識。本書幫助您加入 CLI 開發者社群,並在流行的 Homebrew 套件管理工具中進行分發。

目錄大綱

1. Understanding CLI Standards
2. Structuring Go Code for CLI Applications
3. Design your tool and its purpose
4. Popular frameworks in Go to speed up and enhance CLI development
5. Processing Different Types of Input via Arguments and Flags
6. Calling External Processes and API commands and Handle Timeouts, and Error Handling
7. Developing for Different Platforms
8. Being Clear, Concise and Consistent with CLIs
9. Empathic Side of Development
10. Interactivity with Prompts and Terminal Dashboards
11. Customizing Go Binaries with Build Tags
12. Cross Compilation Across Different Platforms
13. Using Containers for Distribution
14. Publish your Go binary as a Homebrew Formula with GoReleaser

目錄大綱(中文翻譯)

1. Understanding CLI Standards

2. Structuring Go Code for CLI Applications

3. Design your tool and its purpose

4. Popular frameworks in Go to speed up and enhance CLI development

5. Processing Different Types of Input via Arguments and Flags

6. Calling External Processes and API commands and Handle Timeouts, and Error Handling

7. Developing for Different Platforms

8. Being Clear, Concise and Consistent with CLIs

9. Empathic Side of Development

10. Interactivity with Prompts and Terminal Dashboards

11. Customizing Go Binaries with Build Tags

12. Cross Compilation Across Different Platforms

13. Using Containers for Distribution

14. Publish your Go binary as a Homebrew Formula with GoReleaser