Programming in Go: Creating Applications for the 21st Century (Paperback)
暫譯: 用 Go 語言編程:為 21 世紀創建應用程式 (平裝本)

Mark Summerfield

  • 出版商: Addison Wesley
  • 出版日期: 2012-05-14
  • 售價: $1,880
  • 貴賓價: 9.5$1,786
  • 語言: 英文
  • 頁數: 496
  • 裝訂: Paperback
  • ISBN: 0321774639
  • ISBN-13: 9780321774637
  • 相關分類: Go 程式語言程式語言
  • 已絕版

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

商品描述

Your Hands-On Guide to Go, the Revolutionary New Language Designed for Concurrency, Multicore Hardware, and Programmer Convenience

 

Today’s most exciting new programming language, Go, is designed from the ground up to help you easily leverage all the power of today’s multicore hardware. With this guide, pioneering Go programmer Mark Summerfield shows how to write code that takes full advantage of Go’s breakthrough features and idioms.

 

Both a tutorial and a language reference, Programming in Go brings together all the knowledge you need to evaluate Go, think in Go, and write high-performance software with Go. Summerfield presents multiple idiom comparisons showing exactly how Go improves upon older languages, calling special attention to Go’s key innovations. Along the way, he explains everything from the absolute basics through Go’s lock-free channel-based concurrency and its flexible and unusual duck-typing type-safe approach to object-orientation.

 

Throughout, Summerfield’s approach is thoroughly practical. Each chapter offers multiple live code examples designed to encourage experimentation and help you quickly develop mastery. Wherever possible, complete programs and packages are presented to provide realistic use cases, as well as exercises. Coverage includes

 

  • Quickly getting and installing Go, and building and running Go programs
  • Exploring Go’s syntax, features, and extensive standard library
  • Programming Boolean values, expressions, and numeric types
  • Creating, comparing, indexing, slicing, and formatting strings
  • Understanding Go’s highly efficient built-in collection types: slices and maps
  • Using Go as a procedural programming language
  • Discovering Go’s unusual and flexible approach to object orientation
  • Mastering Go’s unique, simple, and natural approach to fine-grained concurrency
  • Reading and writing binary, text, JSON, and XML files
  • Importing and using standard library packages, custom packages, and third-party packages
  • Creating, documenting, unit testing, and benchmarking custom packages

商品描述(中文翻譯)

您的實作指南:Go,這個為併發、多核心硬體和程式設計師便利性而設計的革命性新語言

當今最令人興奮的新程式語言 Go,從根本上設計以幫助您輕鬆利用當今多核心硬體的所有力量。在這本指南中,開創性的 Go 程式設計師 Mark Summerfield 展示了如何編寫充分利用 Go 突破性特徵和慣用法的程式碼。

《Programming in Go》同時是一本教程和語言參考,匯集了您評估 Go、用 Go 思考以及使用 Go 編寫高效能軟體所需的所有知識。Summerfield 提出了多個慣用法比較,清楚地顯示 Go 如何改進舊有語言,特別強調 Go 的關鍵創新。在此過程中,他解釋了從基本概念到 Go 的無鎖通道併發及其靈活且不尋常的鴨子類型安全物件導向方法的所有內容。

整體而言,Summerfield 的方法非常實用。每一章都提供多個即時程式碼範例,旨在鼓勵實驗並幫助您快速掌握。無論何時可能,完整的程式和套件都會被呈現,以提供現實的使用案例以及練習。內容涵蓋:

- 快速獲取和安裝 Go,並構建和運行 Go 程式
- 探索 Go 的語法、特性和廣泛的標準庫
- 編程布林值、表達式和數值類型
- 創建、比較、索引、切片和格式化字串
- 理解 Go 高效的內建集合類型:切片和映射
- 將 Go 作為程序式編程語言使用
- 發現 Go 不尋常且靈活的物件導向方法
- 精通 Go 獨特、簡單且自然的細粒度併發方法
- 讀取和寫入二進位、文本、JSON 和 XML 檔案
- 匯入和使用標準庫套件、自訂套件和第三方套件
- 創建、記錄、單元測試和基準測試自訂套件