Opis ebooka: Learning Go. 2nd Edition
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
Wybrane bestsellery
-
Ten praktyczny przewodnik jest przeznaczony dla osób, które chcą się nauczyć myśleć jak rasowi programiści Go. Dzięki niemu zaczniesz pisać idiomatyczny kod w Go, co pozwoli Ci optymalnie wykorzystywać możliwości tego języka. Dowiesz się, jak wygląda środowisko programistyczne Go i w jaki sposób ...
Język Go. Tworzenie idiomatycznego kodu w praktyce Język Go. Tworzenie idiomatycznego kodu w praktyce
(26.90 zł najniższa cena z 30 dni)26.90 zł
89.00 zł(-70%) -
Ta książka zawiera szereg praktycznych wskazówek dotyczących przygotowania, przeprowadzania i oceniania wyników kontrolowanych eksperymentów online. Dzięki niej nauczysz się stosować naukowe podejście do formułowania założeń i oceny hipotez w testach A/B, dowiesz się także, jak sprawdzać wiarygod...
Kontrolowane eksperymenty online. Praktyczny przewodnik po testach A/B Kontrolowane eksperymenty online. Praktyczny przewodnik po testach A/B
(51.35 zł najniższa cena z 30 dni)47.40 zł
79.00 zł(-40%) -
Pytest – nowoczesny framework do uruchamiania testów automatycznych w języku Python. Można używać tej platformy do przeprowadzania testów jednostkowych, ale sprawdzi się świetnie także podczas konstruowania rozbudowanych testów wyższego poziomu (integracyjnych, end-to-end) dla całych aplika...
Pytest. Kurs video. Automatyzacja testów w Pythonie Pytest. Kurs video. Automatyzacja testów w Pythonie
(67.05 zł najniższa cena z 30 dni)81.95 zł
149.00 zł(-45%) -
Testowanie oprogramowania to jedna z najdynamiczniej rozwijających się dziedzin inżynierii oprogramowania. Zarobki doświadczonych testerów są porównywalne z wynagrodzeniem, jakie otrzymują dobrzy programiści. Aby rozpocząć karierę w tym zawodzie, trzeba się legitymować odpowiednimi umiejętnościam...
Certyfikowany tester ISTQB®. Poziom podstawowy. Wydanie II Certyfikowany tester ISTQB®. Poziom podstawowy. Wydanie II
(65.40 zł najniższa cena z 30 dni)65.40 zł
109.00 zł(-40%) -
Ten praktyczny przewodnik zawiera szeroki przegląd strategii, wzorców i form testowania oprogramowania, ułatwiających dobór ścieżek i podejść do konkretnych projektów w zależności od zakresu, budżetu i ram czasowych. Książka uczy przydatnych umiejętności w zakresie przeprowadzania testów wydajnoś...
Testowanie full stack. Praktyczny przewodnik dostarczania oprogramowania wysokiej jakości Testowanie full stack. Praktyczny przewodnik dostarczania oprogramowania wysokiej jakości
(53.40 zł najniższa cena z 30 dni)53.40 zł
89.00 zł(-40%) -
Naglący termin, niedoczas, permanentne opóźnienie - oto najwierniejsi towarzysze i zarazem najwięksi wrogowie kierownika projektu. Nawet certyfikowani project managerowie, ludzie z ogromną wiedzą i nie mniejszym doświadczeniem, raz po raz znajdują się w sytuacji, w której potrzeba naprawdę wielki...(35.40 zł najniższa cena z 30 dni)
35.40 zł
59.00 zł(-40%) -
Trzymasz w dłoni kolejne wydanie niezwykle popularnego podręcznika do nauki C. Podobnie jak poprzednie wydania, także to zostało zaktualizowane i uzupełnione, między innymi o elementy standardu C11. Książka stanowi przemyślane, przejrzyste i wnikliwe wprowadzenie do języka C. Czytelnie wyjaśnia z...(107.40 zł najniższa cena z 30 dni)
107.40 zł
179.00 zł(-40%) -
Ta książka to sprawdzone źródło informacji na temat Pythona i jego najczęstszych zastosowań. Należy ona do cenionej serii „Receptury”, w której znajdziesz najlepsze sposoby rozwiązywania problemów. Przekonaj się, jak wydajnie operować na strukturach danych, łańcuchach znaków, tekście ...(49.50 zł najniższa cena z 30 dni)
49.50 zł
99.00 zł(-50%) -
„Excel jest naprawdę fantastycznym programem, a jego możliwości są nieskończone…” — myślisz zwykle do chwili, w której okazuje się, że coś, co powinno zająć Ci dwie minuty, zajmuje całe godziny, ponieważ projektanci Excela czegoś nie przewidzieli. Wtedy właśnie do akcji po...(6.45 zł najniższa cena z 30 dni)
6.45 zł
12.90 zł(-50%)
O autorze ebooka
Jon Bodner jest inżynierem oprogramowania i architektem z dwudziestoletnim doświadczeniem. Zajmował się tworzeniem i rozwijaniem aplikacji dla różnych sektorów, między innymi dla finansów, handlu, ochrony zdrowia czy administracji. Często występuje na konferencjach dotyczących języka Go. Jest też współautorem wielu narzędzi służących do rozwijania oprogramowania.
Ebooka "Learning Go. 2nd Edition" przeczytasz na:
-
czytnikach Inkbook, Kindle, Pocketbook, Onyx Boox i innych
-
systemach Windows, MacOS i innych
-
systemach Windows, Android, iOS, HarmonyOS
-
na dowolnych urządzeniach i aplikacjach obsługujących formaty: PDF, EPub, Mobi
Masz pytania? Zajrzyj do zakładki Pomoc »
Audiobooka "Learning Go. 2nd Edition" posłuchasz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolnych urządzeniach i aplikacjach obsługujących format MP3 (pliki spakowane w ZIP)
Masz pytania? Zajrzyj do zakładki Pomoc »
Kurs Video "Learning Go. 2nd Edition" zobaczysz:
-
w aplikacjach Ebookpoint i Videopoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych z dostępem do najnowszej wersji Twojej przeglądarki internetowej
Szczegóły ebooka
- ISBN Ebooka:
- 978-10-981-3925-4, 9781098139254
- Data wydania ebooka:
-
2024-01-10
Data wydania ebooka często jest dniem wprowadzenia tytułu do sprzedaży i może nie być równoznaczna z datą wydania książki papierowej. Dodatkowe informacje możesz znaleźć w darmowym fragmencie. Jeśli masz wątpliwości skontaktuj się z nami sklep@ebookpoint.pl.
- Język publikacji:
- angielski
- Rozmiar pliku ePub:
- 3.8MB
- Rozmiar pliku Mobi:
- 10.4MB
Spis treści ebooka
- Preface
- Who Should Read This Book
- Conventions Used in This Book
- Using Code Examples
- OReilly 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
- Installing the Go Tools
- 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
- Integer types
- The special integer types
- Choosing which integer to use
- Integer operators
- Floating-point types
- Complex types (youre probably not going to use these)
- A Taste of Strings and Runes
- Explicit Type Conversion
- Literals Are Untyped
- The Predeclared Types
- var Versus :=
- Using const
- Typed and Untyped Constants
- Unused Variables
- Naming Variables and Constants
- Exercises
- Wrapping Up
- 3. Composite Types
- ArraysToo 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
- Reading and Writing a Map
- The comma ok Idiom
- Deleting from Maps
- Emptying a Map
- Comparing Maps
- Using Maps as Sets
- Structs
- Anonymous Structs
- Comparing and Converting Structs
- Exercises
- Wrapping Up
- 4. Blocks, Shadows, and Control Structures
- Blocks
- Shadowing Variables
- if
- for, Four Ways
- The Complete for Statement
- The Condition-Only for Statement
- The Infinite for Statement
- break and continue
- The for-range Statement
- Iterating over maps
- Iterating over strings
- The for-range value is a copy
- Labeling Your for Statements
- Choosing the Right for Statement
- switch
- Blank Switches
- Choosing Between if and switch
- gotoYes, goto
- Exercises
- Wrapping Up
- 5. Functions
- Declaring and Calling Functions
- Simulating Named and Optional Parameters
- Variadic Input Parameters and Slices
- Multiple Return Values
- Multiple Return Values Are Multiple Values
- Ignoring Returned Values
- Named Return Values
- Blank ReturnsNever Use These!
- Declaring and Calling Functions
- Functions Are Values
- Function Type Declarations
- Anonymous Functions
- Closures
- Passing Functions as Parameters
- Returning Functions from Functions
- defer
- Go Is Call by Value
- Exercises
- Wrapping Up
- 6. Pointers
- A Quick Pointer Primer
- Dont Fear the Pointers
- Pointers Indicate Mutable Parameters
- Pointers Are a Last Resort
- Pointer Passing Performance
- The Zero Value Versus No Value
- The Difference Between Maps and Slices
- Slices as Buffers
- Reducing the Garbage Collectors Workload
- Tuning the Garbage Collector
- Exercises
- Wrapping Up
- 7. Types, Methods, and Interfaces
- Types in Go
- Methods
- Pointer Receivers and Value Receivers
- Code Your Methods for nil Instances
- Methods Are Functions Too
- Functions Versus Methods
- Type Declarations Arent Inheritance
- Types Are Executable Documentation
- iota Is for EnumerationsSometimes
- Use Embedding for Composition
- Embedding Is Not Inheritance
- A Quick Lesson on Interfaces
- Interfaces Are Type-Safe Duck Typing
- Embedding and Interfaces
- Accept Interfaces, Return Structs
- Interfaces and nil
- Interfaces Are Comparable
- The Empty Interface Says Nothing
- Type Assertions and Type Switches
- Use Type Assertions and Type Switches Sparingly
- Function Types Are a Bridge to Interfaces
- Implicit Interfaces Make Dependency Injection Easier
- Wire
- Go Isnt Particularly Object-Oriented (and Thats Great)
- Exercises
- Wrapping Up
- 8. Generics
- Generics Reduce Repetitive Code and Increase Type Safety
- Introducing Generics in Go
- Generic Functions Abstract Algorithms
- Generics and Interfaces
- Use Type Terms to Specify Operators
- Type Inference and Generics
- Type Elements Limit Constants
- Combining Generic Functions with Generic Data Structures
- More on comparable
- Things That Are Left Out
- Idiomatic Go and Generics
- Adding Generics to the Standard Library
- Future Features Unlocked
- Exercises
- Wrapping Up
- 9. Errors
- How to Handle Errors: The Basics
- Use Strings for Simple Errors
- Sentinel Errors
- Errors Are Values
- Wrapping Errors
- Wrapping Multiple Errors
- Is and As
- Wrapping Errors with defer
- panic and recover
- Getting a Stack Trace from an Error
- Exercises
- Wrapping Up
- 10. Modules, Packages, and Imports
- Repositories, Modules, and Packages
- Using go.mod
- Use the go Directive to Manage Go Build Versions
- The require Directive
- Building Packages
- Importing and Exporting
- Creating and Accessing a Package
- Naming Packages
- Overriding a Packages Name
- Documenting Your Code with Go Doc Comments
- Using the internal Package
- Avoiding Circular Dependencies
- Organizing Your Module
- Gracefully Renaming and Reorganizing Your API
- Avoiding the init Function if Possible
- Working with Modules
- Importing Third-Party Code
- Working with Versions
- Minimal Version Selection
- Updating to Compatible Versions
- Updating to Incompatible Versions
- Vendoring
- Using pkg.go.dev
- Publishing Your Module
- Versioning Your Module
- Overriding Dependencies
- Retracting a Version of Your Module
- Using Workspaces to Modify Modules Simultaneously
- Module Proxy Servers
- Specifying a Proxy Server
- Using Private Repositories
- Additional Details
- Exercises
- Wrapping Up
- 11. Go Tooling
- Using go run to Try Out Small Programs
- Adding Third-Party Tools with go install
- Improving Import Formatting with goimports
- Using Code-Quality Scanners
- staticcheck
- revive
- golangci-lint
- Using govulncheck to Scan for Vulnerable Dependencies
- Embedding Content into Your Program
- Embedding Hidden Files
- Using go generate
- Working with go generate and Makefiles
- Reading the Build Info Inside a Go Binary
- Building Go Binaries for Other Platforms
- Using Build Tags
- Testing Versions of Go
- Using go help to Learn More About Go Tooling
- Exercises
- Wrapping Up
- 12. Concurrency in Go
- When to Use Concurrency
- Goroutines
- Channels
- Reading, Writing, and Buffering
- Using for-range and Channels
- Closing a Channel
- Understanding How Channels Behave
- select
- Concurrency Practices and Patterns
- Keep Your APIs Concurrency-Free
- Goroutines, for Loops, and Varying Variables
- Always Clean Up Your Goroutines
- Use the Context to Terminate Goroutines
- Know When to Use Buffered and Unbuffered Channels
- Implement Backpressure
- Turn Off a case in a select
- Time Out Code
- Use WaitGroups
- Run Code Exactly Once
- Put Your Concurrent Tools Together
- When to Use Mutexes Instead of Channels
- AtomicsYou Probably Dont Need These
- Where to Learn More About Concurrency
- Exercises
- Wrapping Up
- 13. The Standard Library
- io and Friends
- time
- Monotonic Time
- Timers and Timeouts
- encoding/json
- Using Struct Tags to Add Metadata
- Unmarshaling and Marshaling
- JSON, Readers, and Writers
- Encoding and Decoding JSON Streams
- Custom JSON Parsing
- net/http
- The Client
- The Server
- Middleware
- Use third-party modules to enhance the server
- ResponseController
- Structured Logging
- Exercises
- Wrapping Up
- 14. The Context
- What Is the Context?
- Values
- Cancellation
- Contexts with Deadlines
- Context Cancellation in Your Own Code
- Exercises
- Wrapping Up
- 15. Writing Tests
- Understanding the Basics of Testing
- Reporting Test Failures
- Setting Up and Tearing Down
- Testing with Environment Variables
- Storing Sample Test Data
- Caching Test Results
- Testing Your Public API
- Using go-cmp to Compare Test Results
- Understanding the Basics of Testing
- Running Table Tests
- Running Tests Concurrently
- Checking Your Code Coverage
- Fuzzing
- Using Benchmarks
- Using Stubs in Go
- Using httptest
- Using Integration Tests and Build Tags
- Finding Concurrency Problems with the Data Race Detector
- Exercises
- Wrapping Up
- 16. Here Be Dragons: Reflect,
Unsafe, and Cgo
- Reflection Lets You Work with Types at Runtime
- Types, Kinds, and Values
- Types and kinds
- Values
- Types, Kinds, and Values
- Make New Values
- Use Reflection to Check If an Interfaces Value Is nil
- Use Reflection to Write a Data Marshaler
- Build Functions with Reflection to Automate Repetitive Tasks
- You Can Build Structs with Reflection, but Dont
- Reflection Cant Make Methods
- Use Reflection Only if Its Worthwhile
- Reflection Lets You Work with Types at Runtime
- unsafe Is Unsafe
- Using Sizeof and Offsetof
- Using unsafe to Convert External Binary Data
- Accessing Unexported Fields
- Using unsafe Tools
- Cgo Is for Integration, Not Performance
- Exercises
- Wrapping Up
- Index
O'Reilly Media - inne książki
-
Keeping up with the Python ecosystem can be daunting. Its developer tooling doesn't provide the out-of-the-box experience native to languages like Rust and Go. When it comes to long-term project maintenance or collaborating with others, every Python project faces the same problem: how to build re...(201.03 zł najniższa cena z 30 dni)
200.93 zł
239.00 zł(-16%) -
Bringing a deep-learning project into production at scale is quite challenging. To successfully scale your project, a foundational understanding of full stack deep learning, including the knowledge that lies at the intersection of hardware, software, data, and algorithms, is required.This book il...(241.36 zł najniższa cena z 30 dni)
241.26 zł
289.00 zł(-17%) -
Frontend developers have to consider many things: browser compatibility, usability, performance, scalability, SEO, and other best practices. But the most fundamental aspect of creating websites is one that often falls short: accessibility. Accessibility is the cornerstone of any website, and if a...(200.59 zł najniższa cena z 30 dni)
200.09 zł
239.00 zł(-16%) -
In this insightful and comprehensive guide, Addy Osmani shares more than a decade of experience working on the Chrome team at Google, uncovering secrets to engineering effectiveness, efficiency, and team success. Engineers and engineering leaders looking to scale their effectiveness and drive tra...(114.93 zł najniższa cena z 30 dni)
114.88 zł
149.00 zł(-23%) -
Data modeling is the single most overlooked feature in Power BI Desktop, yet it's what sets Power BI apart from other tools on the market. This practical book serves as your fast-forward button for data modeling with Power BI, Analysis Services tabular, and SQL databases. It serves as a starting ...(199.08 zł najniższa cena z 30 dni)
198.88 zł
239.00 zł(-17%) -
C# is undeniably one of the most versatile programming languages available to engineers today. With this comprehensive guide, you'll learn just how powerful the combination of C# and .NET can be. Author Ian Griffiths guides you through C# 12.0 and .NET 8 fundamentals and techniques for building c...(241.02 zł najniższa cena z 30 dni)
240.92 zł
289.00 zł(-17%) -
Learn how to get started with Futures Thinking. With this practical guide, Phil Balagtas, founder of the Design Futures Initiative and the global Speculative Futures network, shows you how designers and futurists have made futures work at companies such as Atari, IBM, Apple, Disney, Autodesk, Luf...(148.10 zł najniższa cena z 30 dni)
148.00 zł
179.00 zł(-17%) -
Augmented Analytics isn't just another book on data and analytics; it's a holistic resource for reimagining the way your entire organization interacts with information to become insight-driven.Moving beyond traditional, limited ways of making sense of data, Augmented Analytics provides a dynamic,...(174.74 zł najniższa cena z 30 dni)
174.54 zł
219.00 zł(-20%) -
Learn how to prepare for—and pass—the Kubernetes and Cloud Native Associate (KCNA) certification exam. This practical guide serves as both a study guide and point of entry for practitioners looking to explore and adopt cloud native technologies. Adrián González Sánchez ...
Kubernetes and Cloud Native Associate (KCNA) Study Guide Kubernetes and Cloud Native Associate (KCNA) Study Guide
(169.14 zł najniższa cena z 30 dni)177.65 zł
199.00 zł(-11%) -
Python is an excellent way to get started in programming, and this clear, concise guide walks you through Python a step at a time—beginning with basic programming concepts before moving on to functions, data structures, and object-oriented design. This revised third edition reflects the gro...(140.34 zł najniższa cena z 30 dni)
140.14 zł
179.00 zł(-22%)
Dzieki opcji "Druk na żądanie" do sprzedaży wracają tytuły Grupy Helion, które cieszyły sie dużym zainteresowaniem, a których nakład został wyprzedany.
Dla naszych Czytelników wydrukowaliśmy dodatkową pulę egzemplarzy w technice druku cyfrowego.
Co powinieneś wiedzieć o usłudze "Druk na żądanie":
- usługa obejmuje tylko widoczną poniżej listę tytułów, którą na bieżąco aktualizujemy;
- cena książki może być wyższa od początkowej ceny detalicznej, co jest spowodowane kosztami druku cyfrowego (wyższymi niż koszty tradycyjnego druku offsetowego). Obowiązująca cena jest zawsze podawana na stronie WWW książki;
- zawartość książki wraz z dodatkami (płyta CD, DVD) odpowiada jej pierwotnemu wydaniu i jest w pełni komplementarna;
- usługa nie obejmuje książek w kolorze.
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka, którą chcesz zamówić pochodzi z końcówki nakładu. Oznacza to, że mogą się pojawić drobne defekty (otarcia, rysy, zagięcia).
Co powinieneś wiedzieć o usłudze "Końcówka nakładu":
- usługa obejmuje tylko książki oznaczone tagiem "Końcówka nakładu";
- wady o których mowa powyżej nie podlegają reklamacji;
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka drukowana
![Loader](https://static01.helion.com.pl/ebookpoint/img/ajax-loader.gif)
![ajax-loader](https://static01.helion.com.pl/ebookpoint/img/ajax-loader.gif)
Oceny i opinie klientów: Learning Go. 2nd Edition Jon Bodner (0)
Weryfikacja opinii następuję na podstawie historii zamówień na koncie Użytkownika umieszczającego opinię. Użytkownik mógł otrzymać punkty za opublikowanie opinii uprawniające do uzyskania rabatu w ramach Programu Punktowego.