Learning Go: An Idiomatic Approach to Real-World Go Programming 2/e

Bodner, Jon

  • 出版商: O'Reilly
  • 出版日期: 2024-02-20
  • 定價: $2,330
  • 售價: 9.5$2,214
  • 貴賓價: 9.0$2,097
  • 語言: 英文
  • 頁數: 491
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1098139291
  • ISBN-13: 9781098139292
  • 相關分類: Go 程式語言
  • 立即出貨 (庫存=1)

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

商品描述

Go has rapidly become the preferred language for building web services. Plenty of tutorials are available to teach Go's syntax to developers with experience in other programming languages, but tutorials aren't enough. They don't teach Go's idioms, so developers end up recreating patterns that don't make sense in a Go context. This practical guide provides the essential background you need to write clear and idiomatic Go.

No matter your level of experience, you'll learn how to think like a Go developer. Author Jon Bodner introduces the design patterns experienced Go developers have adopted and explores the rationale for using them. This updated edition also shows you how Go's generics support fits into the language.

This book helps you:

  • Write idiomatic code in Go and design a Go project
  • Understand the reasons behind Go's design decisions
  • Set up a Go development environment for a solo developer or team
  • Learn how and when to use reflection, unsafe, and cgo
  • Discover how Go's features allow the language to run efficiently
  • Know which Go features you should use sparingly or not at all
  • Use Go's tools to improve performance, optimize memory usage, and reduce garbage collection
  • Learn how to use Go's advanced development tools

商品描述(中文翻譯)

Go語言迅速成為建立網路服務的首選語言。有許多教學可以教導有其他程式語言經驗的開發者Go的語法,但教學並不足夠。它們並未教導Go的慣用法,因此開發者最終會在Go的情境中重新創建不合理的模式。這本實用指南提供了撰寫清晰且慣用的Go程式所需的基本背景。

無論您的經驗水平如何,您都將學習如何像Go開發者一樣思考。作者Jon Bodner介紹了有經驗的Go開發者所採用的設計模式,並探討了使用它們的理由。這本更新的版本還向您展示了Go的泛型支援如何適應該語言。

本書幫助您:
- 在Go中撰寫慣用的程式碼並設計Go專案
- 理解Go設計決策背後的原因
- 為個人開發者或團隊建立Go開發環境
- 學習何時以及如何使用反射、不安全和cgo
- 發現Go的特性如何使語言運行高效
- 知道應該節省使用哪些Go特性,或者根本不使用
- 使用Go的工具來提升效能、優化記憶體使用和減少垃圾回收
- 學習如何使用Go的高級開發工具