Go Recipes for Developers: Top techniques and practical solutions for real-life Go programming problems
暫譯: Go 開發者食譜:解決實際 Go 程式問題的最佳技術與實用方案

Serdar, Burak

  • 出版商: Packt Publishing
  • 出版日期: 2024-12-30
  • 售價: $1,700
  • 貴賓價: 9.5$1,615
  • 語言: 英文
  • 頁數: 350
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1835464394
  • ISBN-13: 9781835464397
  • 相關分類: Go 程式語言程式語言
  • 海外代購書籍(需單獨結帳)

商品描述

Master essential Go programming techniques step by step with expert-led recipes and ready-to-use solutions for common challenges

Key Features:

- Discover easy-to-implement recipes for all types of programming projects

- Learn idiomatic solutions to common problems

- Gain comprehensive knowledge of core Go concepts

- Purchase of the print or Kindle book includes a free PDF eBook

Book Description:

With its simple syntax and sensible conventions, Go has emerged as the language of choice for developers in network programming, web services, data processing, and other settings. This practical guide helps engineers leverage Go through up-to-date recipes that solve common problems in day-to-day programming. Drawing from three decades of distributed systems engineering and technical leadership at companies like Red Hat, Burak Serdar brings battle-tested expertise in building robust, scalable applications.

He starts by covering basics of code structure, describing different approaches to organizing packages for different types of projects. You'll discover practical solutions to engineering challenges in network programming, dealing with processes, databases, data processing pipelines, and testing. Each chapter provides working solutions and production-ready code snippets that you can seamlessly incorporate into your programs while working in sequential and concurrent settings. The solutions leverage the more recent additions to the Go language, such as generics and structured logging. Most of the examples are developed using the Go standard library without any third-party packages.

By the end of this book, you'll have worked through a collection of proven recipes that will equip you accelerate your Go development journey.

What You Will Learn:

- Understand how to structure projects

- Find out how to process text with Go tools

- Discover how to work with arrays, slices, and maps

- Implement robust error handling patterns

- Explore concurrent data processing for Go programs

- Get up to speed with how to control processes

- Integrate Go applications with databases

- Understand how to test, benchmark, and profile Go programs

Who this book is for:

This book is for any developer with a basic understanding of the Go language. If you're a senior developer, you can use it as a reference for finding useful examples they can apply to different use cases.

Table of Contents

- Project Organization

- Working with Strings

- Working with Date and Time

- Working with Arrays, Slices, and Maps

- Working with Types, Structs, and Interfaces

- Working with Generics

- Concurrency

- Errors and Panics

- The Context Package

- Working with Large Data

- Working with JSON

- Processes

- Testing

- Network Programming

- Streaming Input/Output

- Databases

- Logging

- Testing, Benchmarks, and Profiling

商品描述(中文翻譯)

**逐步掌握基本的 Go 程式設計技巧,透過專家主導的食譜和現成的解決方案應對常見挑戰**

**主要特色:**
- 發現適用於各類程式專案的易於實施的食譜
- 學習針對常見問題的慣用解決方案
- 獲得 Go 語言核心概念的全面知識
- 購買印刷版或 Kindle 版書籍可獲得免費 PDF 電子書

**書籍描述:**
Go 語言以其簡單的語法和合理的慣例,已成為網路程式設計、網路服務、數據處理及其他環境中開發者的首選語言。本實用指南幫助工程師透過最新的食譜來利用 Go,解決日常程式設計中的常見問題。Burak Serdar 擁有三十年的分散式系統工程和技術領導經驗,曾在 Red Hat 等公司工作,帶來了構建穩健、可擴展應用程式的實戰專業知識。

他首先介紹了程式碼結構的基本概念,描述了針對不同類型專案組織套件的不同方法。您將發現針對網路程式設計、處理過程、數據庫、數據處理管道和測試的工程挑戰的實用解決方案。每一章提供可運作的解決方案和可直接用於生產的程式碼片段,您可以在順序和並發環境中無縫地將其整合到您的程式中。這些解決方案利用了 Go 語言的最新功能,如泛型和結構化日誌。大多數範例都是使用 Go 標準庫開發的,未使用任何第三方套件。

在本書結束時,您將完成一系列經過驗證的食譜,這將幫助您加速 Go 開發之旅。

**您將學到的內容:**
- 理解如何結構化專案
- 瞭解如何使用 Go 工具處理文本
- 發現如何使用陣列、切片和映射
- 實現穩健的錯誤處理模式
- 探索 Go 程式的並發數據處理
- 了解如何控制過程
- 將 Go 應用程式與數據庫整合
- 理解如何測試、基準測試和分析 Go 程式

**本書適合的人群:**
本書適合任何對 Go 語言有基本了解的開發者。如果您是資深開發者,可以將其作為參考,尋找可應用於不同使用案例的有用範例。

**目錄:**
- 專案組織
- 字串處理
- 日期和時間處理
- 陣列、切片和映射處理
- 類型、結構和介面的處理
- 泛型處理
- 並發
- 錯誤和恐慌
- 上下文套件
- 大數據處理
- JSON 處理
- 過程
- 測試
- 網路程式設計
- 流式輸入/輸出
- 數據庫
- 日誌
- 測試、基準測試和分析