Learning Go Programming

Vladimir Vivien

  • 出版商: Packt Publishing
  • 出版日期: 2016-10-27
  • 售價: $2,130
  • 貴賓價: 9.5$2,024
  • 語言: 英文
  • 頁數: 348
  • 裝訂: Paperback
  • ISBN: 1784395439
  • ISBN-13: 9781784395438
  • 相關分類: Go 程式語言
  • 海外代購書籍(需單獨結帳)

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

商品描述

Key Features

  • Insightful coverage of Go programming syntax, constructs, and idioms to help you understand Go code effectively
  • Push your Go skills, with topics such as, data types, channels, concurrency, object-oriented Go, testing, and network programming
  • Each chapter provides working code samples that are designed to help reader quickly understand respective topic

Book Description

The Go programming language has firmly established itself as a favorite for building complex and scalable system applications. Go offers a direct and practical approach to programming that let programmers write correct and predictable code using concurrency idioms and a full-featured standard library.

This is a step-by-step, practical guide full of real world examples to help you get started with Go in no time at all. We start off by understanding the fundamentals of Go, followed by a detailed description of the Go data types, program structures and Maps. After this, you learn how to use Go concurrency idioms to avoid pitfalls and create programs that are exact in expected behavior. Next, you will be familiarized with the tools and libraries that are available in Go for writing and exercising tests, benchmarking, and code coverage.

Finally, you will be able to utilize some of the most important features of GO such as, Network Programming and OS integration to build efficient applications. All the concepts are explained in a crisp and concise manner and by the end of this book; you would be able to create highly efficient programs that you can deploy over cloud.

What you will learn

  • Install and configure the Go development environment to quickly get started with your first program.
  • Use the basic elements of the language including source code structure, variables, constants, and control flow primitives to quickly get started with Go
  • Gain practical insight into the use of Go's type system including basic and composite types such as maps, slices, and structs.
  • Use interface types and techniques such as embedding to create idiomatic object-oriented programs in Go.
  • Develop effective functions that are encapsulated in well-organized package structures with support for error handling and panic recovery.
  • Implement goroutine, channels, and other concurrency primitives to write highly-concurrent and safe Go code
  • Write tested and benchmarked code using Go’s built test tools
  • Access OS resources by calling C libraries and interact with program environment at runtime

About the Author

Vladimir Vivien (@vladimirvivien) is a software engineer living in the United States. He is a previously published author and has written code in languages such as Java, JavaScript, Python, C to name a few. Vladimir has work in diverse industries including technology, publishing, financial, and healthcare. After years of building enterprise systems using Java, Vladimir came to Go for its simplicity and stayed for its concurrency and fast build time. Vladimir continues to use Go as his primary language to build and create open source software (https://github.com/vladimirivivien).

Table of Contents

  1. A First Step in Go
  2. Go Language Essentials
  3. Go Control Flow
  4. Data Types
  5. Functions in Go
  6. Go Packages and Programs
  7. Composite Types
  8. Methods, Interfaces, and Objects
  9. Concurrency
  10. Data IO in Go
  11. Writing Networked Services
  12. Code Testing

商品描述(中文翻譯)

主要特點



  • 深入介紹Go編程語法、結構和慣用法,幫助您有效理解Go代碼

  • 通過涵蓋數據類型、通道、並發、面向對象的Go、測試和網絡編程等主題,提升您的Go技能

  • 每章提供實用的代碼示例,幫助讀者快速理解相應的主題

書籍描述


Go編程語言已經成為構建複雜和可擴展系統應用的首選。Go提供了一種直接而實用的編程方法,讓程序員能夠使用並發慣用法和功能完整的標準庫編寫正確且可預測的代碼。


這是一本逐步指南,充滿了真實世界的示例,幫助您立即開始使用Go。我們首先理解Go的基礎知識,然後詳細描述Go的數據類型、程序結構和映射。之後,您將學習如何使用Go的並發慣用法,避免陷阱,並創建行為符合預期的程序。接下來,您將熟悉Go中可用於編寫和執行測試、性能測試和代碼覆蓋的工具和庫。


最後,您將能夠利用Go的一些最重要的功能,例如網絡編程和操作系統集成,構建高效的應用程序。所有概念都以簡潔明了的方式解釋,通過閱讀本書,您將能夠創建高效的程序,並將其部署到雲端。

您將學到什麼



  • 安裝和配置Go開發環境,快速開始您的第一個程序

  • 使用語言的基本元素,包括源代碼結構、變量、常量和控制流程原語,快速入門Go

  • 實際了解Go的類型系統,包括基本類型和複合類型,如映射、切片和結構體

  • 使用接口類型和嵌入等技術,創建慣用的面向對象的Go程序

  • 開發有效的函數,將其封裝在組織良好的包結構中,支持錯誤處理和恢復

  • 使用goroutine、通道和其他並發原語,編寫高並發和安全的Go代碼

  • 使用Go的內建測試工具編寫測試和性能測試代碼

  • 通過調用C庫訪問操作系統資源,並在運行時與程序環境交互

關於作者


Vladimir Vivien(@vladimirvivien)是一名居住在美國的軟件工程師。他是一位曾經出版的作者,並且使用過多種語言編寫代碼,包括Java、JavaScript、Python和C等。Vladimir在技術、出版、金融和醫療等不同行業工作過。在使用Java構建企業系統多年後,Vladimir因為Go的簡潔性而開始使用它,並因為其並發性和快速構建時間而一直使用。Vladimir繼續使用Go作為他的主要語言來構建和創建開源軟件(https://github.com/vladimirivivien)。

目錄



  1. Go的第一步

  2. Go語言基礎

  3. Go控制流程

  4. 數據類型

  5. Go函數

  6. Go包和程序

  7. 複合類型

  8. 方法、接口和對象

  9. 並發

  10. Go中的數據IO

  11. 編寫網絡服務

  12. 代碼測試