Автор: Jon Bodner
Издательство: O’Reilly Media, Inc.
Год: 2023-07-11
Страниц: 386
Язык: английский
Формат: epub (true), mobi, pdf
Размер: 10.2 MB
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.
Every programming language needs a development environment, and Go is no exception. If you’ve already built a Go program or two, then you have a working environment, but you might have missed out on some of the newer techniques and tools. If this is your first time setting up Go on your computer, don’t worry; it’s easy to install Go and its supporting tools. After setting up the environment and verifying it, we will build a simple program, learn about the different ways to build and run Go code, and then explore some tools and techniques that make Go development easier.
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
Скачать Learning Go, 2nd Edition (Fifth Early Release)