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
(53.40 zł najniższa cena z 30 dni)62.30 zł
89.00 zł(-30%) -
To drugie wydanie przewodnika dla programistów, którzy chcą efektywnie budować atrakcyjne złożone front-endy aplikacji. Uwzględniono tu nowe elementy Reacta 18, w tym hooki, biblioteki do zarządzania stanem, jak również najnowszą wersję języka TypeScript. Dzięki tej książce nauczysz się tworzyć p...
React i TypeScript. Reaktywne tworzenie stron internetowych dla początkujących. Wydanie II React i TypeScript. Reaktywne tworzenie stron internetowych dla początkujących. Wydanie II
(53.40 zł najniższa cena z 30 dni)62.30 zł
89.00 zł(-30%) -
Ta książka pomoże Ci się przygotować do pracy na stanowisku testera w zwinnym zespole programistów. Znajdziesz tu szczegółowe informacje na temat kolejnych etapów testowania, dzięki czemu zrozumiesz, jak w projektach agile te działania są planowane, przeprowadzane i monitorowane. Dowiesz się też,...
Tester samouk w zwinnym zespole. Testowanie agile krok po kroku na podstawie rzeczywistego projektu Tester samouk w zwinnym zespole. Testowanie agile krok po kroku na podstawie rzeczywistego projektu
(35.40 zł najniższa cena z 30 dni)41.30 zł
59.00 zł(-30%) -
Firmy z branży IT prześcigają się w tworzeniu rozwiązań zwiększających wydajność pracy, jak również podnoszących poziom specjalizacji pracowników w określonych dziedzinach. Od kilku już lat pozycja full stack developera, który wykonywał wszystkie prace programistyczne, jest wielką rzadkością. Obe...
Postman i SQL. Kurs video. Metody testowania REST API i przeszukiwania baz danych Postman i SQL. Kurs video. Metody testowania REST API i przeszukiwania baz danych
(71.55 zł najniższa cena z 30 dni)95.40 zł
159.00 zł(-40%) -
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)76.30 zł
109.00 zł(-30%) -
To książka przeznaczona dla tych, którzy chcą dogłębnie zrozumieć istotę TDD. Omówiono tu wszystkie aspekty TDD, włączając w to podstawy, dzięki którym średnio zaawansowany programista komfortowo rozpocznie budowę aplikacji zgodnie z tym paradygmatem. Przedstawiono zasady definiowania i testowani...
TDD z wykorzystaniem C# 7. Programowanie sterowane testami TDD z wykorzystaniem C# 7. Programowanie sterowane testami
(34.50 zł najniższa cena z 30 dni)37.95 zł
69.00 zł(-45%) -
Dzięki lekturze tej publikacji przemienisz się ze sprawnego programisty w pewnego siebie inżyniera — stosującego najlepsze praktyki programistyczne, pracującego szybko i solidnie. Autorzy przedstawiają praktyczne problemy i użyteczne rozwiązania, które zaprowadzą Cię na szczyt kariery! Jeśl...(24.50 zł najniższa cena z 30 dni)
26.95 zł
49.00 zł(-45%)
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
-
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...(143.65 zł najniższa cena z 30 dni)
160.65 zł
189.00 zł(-15%) -
Developers with the ability to operate, troubleshoot, and monitor applications in Kubernetes are in high demand today. To meet this need, the Cloud Native Computing Foundation created a certification exam to establish a developer's credibility and value in the job market for work in a Kubernetes ...
Certified Kubernetes Application Developer (CKAD) Study Guide. 2nd Edition Certified Kubernetes Application Developer (CKAD) Study Guide. 2nd Edition
(177.65 zł najniższa cena z 30 dni)186.15 zł
219.00 zł(-15%) -
The surging predictive analytics market is expected to grow from $10.5 billion today to $28 billion by 2026. With the rise in automation across industries, the increase in data-driven decision-making, and the proliferation of IoT devices, predictive analytics has become an operational necessity i...(194.65 zł najniższa cena z 30 dni)
211.65 zł
249.00 zł(-15%) -
How do some organizations maintain 24-7 internet-scale operations? How can organizations integrate security while continuously deploying new features? How do organizations increase security within their DevOps processes?This practical guide helps you answer those questions and more. Author Steve ...(160.65 zł najniższa cena z 30 dni)
177.65 zł
209.00 zł(-15%) -
Many organizations today analyze and share large, sensitive datasets about individuals. Whether these datasets cover healthcare details, financial records, or exam scores, it's become more difficult for organizations to protect an individual's information through deidentification, anonymization, ...(228.65 zł najniższa cena z 30 dni)
254.15 zł
299.00 zł(-15%) -
Large language models (LLMs) and diffusion models such as ChatGPT and Stable Diffusion have unprecedented potential. Because they have been trained on all the public text and images on the internet, they can make useful contributions to a wide variety of tasks. And with the barrier to entry great...(228.65 zł najniższa cena z 30 dni)
254.15 zł
299.00 zł(-15%) -
Filled with tips, tricks, and techniques, this easy-to-use book is the perfect resource for intermediate to advanced users of Excel. You'll find complete recipes for more than a dozen topics covering formulas, PivotTables, charts, Power Query, and more. Each recipe poses a particular problem and ...(203.15 zł najniższa cena z 30 dni)
211.65 zł
249.00 zł(-15%) -
Traditional data architecture patterns are severely limited. To use these patterns, you have to ETL data into each tool—a cost-prohibitive process for making warehouse features available to all of your data. The lack of flexibility with these patterns requires you to lock into a set of prio...(211.65 zł najniższa cena z 30 dni)
220.15 zł
259.00 zł(-15%) -
In today's data-driven world, understanding statistical models is crucial for effective analysis and decision making. Whether you're a beginner or an experienced user, this book equips you with the foundational knowledge to grasp and implement statistical models within Tableau. Gain the confidenc...(186.15 zł najniższa cena z 30 dni)
186.15 zł
219.00 zł(-15%) -
If you haven't modernized your data cleaning and reporting processes in Microsoft Excel, you're missing out on big productivity gains. And if you're looking to conduct rigorous data analysis, more can be done in Excel than you think. This practical book serves as an introduction to the modern Exc...(186.15 zł najniższa cena z 30 dni)
186.15 zł
219.00 zł(-15%)
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
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.