Learning Go

An Idiomatic Approach to Real-World Go Programming

Paperback Engels 2024 2e druk 9781098139292
€ 76,02
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

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

Specificaties

ISBN13:9781098139292
Taal:Engels
Bindwijze:paperback
Aantal pagina's:478
Uitgever:O'Reilly
Druk:2
Verschijningsdatum:25-1-2024
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

Preface
Who Should Read This Book
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments for the 2nd Edition
Acknowledgments for the 1st Edition

1. Setting Up Your Go Environment
Installing the Go Tools
Troubleshooting Your Go Installation
Go Tooling
Your First Go Program
Making a Go Module
go build
go fmt
go vet
Choose Your Tools
Visual Studio Code
GoLand
The Go Playground
Makefiles
The Go Compatibility Promise
Staying Up-to-Date
Exercises
Wrapping Up

2. Predeclared Types and Declarations
The Predeclared Types
The Zero Value
Literals
Booleans
Numeric Types
A Taste of Strings and Runes
Explicit Type Conversion
Literals Are Untyped
var Versus :=
Using const
Typed and Untyped Constants
Unused Variables
Naming Variables and Constants
Exercises
Wrapping Up

3. Composite Types
Arrays—Too Rigid to Use Directly
Slices
len
append
Capacity
make
Emptying a Slice
Declaring Your Slice
Slicing Slices
copy
Converting Arrays to Slices
Converting Slices to Arrays
Strings and Runes and Bytes
Maps
Afgekapt op 60 regels

Managementboek Top 100

€ 76,02
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Learning Go