Go: Building Web Applications
暫譯: Go: 建立網頁應用程式

Nathan Kozyra, Mat Ryer

  • 出版商: Packt Publishing
  • 出版日期: 2017-01-31
  • 售價: $3,230
  • 貴賓價: 9.5$3,069
  • 語言: 英文
  • 頁數: 680
  • 裝訂: Paperback
  • ISBN: 1787123499
  • ISBN-13: 9781787123496
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Build real-world, production-ready solutions by harnessing the powerful features of Go

About This Book

  • An easy-to-follow guide that provides everything a developer needs to know to build end-to-end web applications in Go
  • Write interesting and clever, but simple code, and learn skills and techniques that are directly transferable to your own projects
  • A practical approach to utilize application scaffolding to design highly scalable programs that are deeply rooted in go routines and channels

Who This Book Is For

This book is intended for developers who are new to Go, but have previous experience of building web applications and APIs.

What You Will Learn

  • Build a fully featured REST API to enable client-side single page apps
  • Utilize TLS to build reliable and secure sites
  • Learn to apply the nuances of the Go language to implement a wide range of start-up quality projects
  • Create websites and data services capable of massive scale using Go's net/http package, exploring RESTful patterns as well as low-latency WebSocket APIs
  • Interact with a variety of remote web services to consume capabilities ranging from authentication and authorization to a fully functioning thesaurus
  • Explore the core syntaxes and language features that enable concurrency in Go
  • Understand when and where to use concurrency to keep data consistent and applications non-blocking, responsive, and reliable
  • Utilize advanced concurrency patterns and best practices to stay low-level without compromising the simplicity of Go itself

In Detail

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. It is a statically typed language with syntax loosely derived from that of C, adding garbage collection, type safety, some dynamic-typing capabilities, additional built-in types such as variable-length arrays and key-value maps, and a large standard library.

This course starts with a walkthrough of the topics most critical to anyone building a new web application. Whether it's keeping your application secure, connecting to your database, enabling token-based authentication, or utilizing logic-less templates, this course has you covered.

Scale, performance, and high availability lie at the heart of the projects, and the lessons learned throughout this course will arm you with everything you need to build world-class solutions. It will also take you through the history of concurrency, how Go utilizes it, how Go differs from other languages, and the features and structures of Go's concurrency core. It will make you feel comfortable designing a safe, data-consistent, and high-performance concurrent application in Go.

This course is an invaluable resource to help you understand Go's powerful features to build simple, reliable, secure, and efficient web applications.

Style and approach

This course is a step-by-step guide, which starts off with the basics of go programming to build web applications and will gradually move on to cover intermediate and advanced topics. You will be going through this smooth transition by building interesting projects along with the authors, discussing significant options, and decisions at each stage, while keeping the programs lean, uncluttered, and as simple as possible.

商品描述(中文翻譯)

**利用 Go 的強大功能構建現實世界的生產就緒解決方案**

## 本書介紹

- 一本易於遵循的指南,提供開發者構建 Go 的端到端網頁應用所需的所有知識
- 編寫有趣且巧妙但簡單的程式碼,學習可直接轉移到自己專案的技能和技術
- 實用的方法利用應用程式腳手架設計高度可擴展的程式,深度根植於 go routines 和 channels

## 本書適合誰

本書適合對 Go 新手的開發者,但具備構建網頁應用和 API 的經驗。

## 您將學到什麼

- 構建一個功能齊全的 REST API,以支持客戶端單頁應用
- 利用 TLS 構建可靠且安全的網站
- 學習應用 Go 語言的細微差別,以實現各種初創企業質量的專案
- 使用 Go 的 net/http 套件創建能夠大規模擴展的網站和數據服務,探索 RESTful 模式以及低延遲的 WebSocket API
- 與各種遠程網路服務互動,消耗從身份驗證和授權到完整功能的同義詞庫的能力
- 探索使 Go 支持並發的核心語法和語言特性
- 理解何時何地使用並發以保持數據一致性,並確保應用程式非阻塞、響應迅速且可靠
- 利用先進的並發模式和最佳實踐,保持低層次而不妥協 Go 本身的簡單性

## 詳細內容

Go 是一種開源程式語言,使構建簡單、可靠和高效的軟體變得容易。它是一種靜態類型語言,語法大致源自 C,增加了垃圾回收、類型安全、某些動態類型能力、額外的內建類型(如可變長度數組和鍵值映射)以及大型標準庫。

本課程從對任何構建新網頁應用的關鍵主題的逐步講解開始。無論是保持應用安全、連接數據庫、啟用基於令牌的身份驗證,還是利用無邏輯模板,本課程都能滿足您的需求。

可擴展性、性能和高可用性是專案的核心,這門課程中學到的課程將為您提供構建世界級解決方案所需的一切。它還將帶您了解並發的歷史、Go 如何利用並發、Go 與其他語言的不同之處,以及 Go 的並發核心的特性和結構。這將使您在 Go 中設計安全、數據一致且高性能的並發應用感到自信。

這門課程是幫助您理解 Go 強大功能以構建簡單、可靠、安全和高效的網頁應用的寶貴資源。

## 風格與方法

這門課程是一個逐步指南,從 Go 程式設計的基礎開始構建網頁應用,然後逐漸涵蓋中級和高級主題。您將通過與作者一起構建有趣的專案,討論每個階段的重要選擇和決策,實現平滑的過渡,同時保持程式簡潔、清晰,盡可能簡單。