Pointers & errors - Learn Go with tests
Learn Go with tests Contribute on github Search… main Learn Go with Tests GO FUNDAMENTALS Install Go Hello, World Integers Iteration Arrays and slices Structs, methods & interfaces Pointers & errors Maps Dependency Injection Mocking Concurrency Select Reflection Sync Context Intro to property based tests Maths Reading files BUILD AN APPLICATION Intro HTTP server JSON, routing and embedding IO and sorting Command line & package structure Time WebSockets QUESTIONS AND ANSWERS OS Exec Error types Context-aware Reader Revisiting HTTP Handlers META Why unit tests and how to make them work for you Anti-patterns Intro to generics Contributing Chapter Template Powered By GitBook Pointers & errors You can find all the code for this chapter here We learned about structs in the last section which let us capture a number of values related around a concept. At some point you may wish to use structs to manage state, exposing methods to let users change the state in a way that you can control. Fint
Pointers & errors | Learn Go with tests Learn Go with tests main Learn Go with Tests Go fundamentals Install Go Hello, World Integers Iteration Arrays and slices Structs, methods & interfaces Pointers & errors Maps Dependency Injection Mocking Concurrency Select Reflection Sync Context Intro to property based tests Maths Reading files Templating Generics Revisiting arrays and slices with generics Testing fundamentals Introduction to acceptance tests Scaling acceptance tests Working without mocks Refactoring Checklist Build an application Intro HTTP server JSON, routing and embedding IO and sor
Explore this link on the map →saved by
related reading
- mysql - Golang using lowercase for first letter in Struct property - Stack Overflowstackoverflow.com
- Frequently Asked Questions (FAQ) - The Go Programming Languagego.dev
- Writing Better Go: Lessons from 10 Code Reviews - Speaker Deckspeakerdeck.com
- Writing Better Go: Lessons from 10 Code Reviews - Speaker Deckspeakerdeck.com
- NilAway: Practical Nil Panic Detection for Gouber.com
- Go go-to guide · YourBasicyourbasic.org
- Demystifying Function Parameters in Go- Alex Edwardsalexedwards.net
- Effective Go - The Go Programming Languagego.dev
- The Laws of Reflection - The Go Programming Languagego.dev
- Four Days of Go – Evan Millerevanmiller.org
- Notes on structured concurrency, or: Go statement considered harmful - njs blogvorpus.org
- The Go Programming Language Specification - The Go Programming Languagego.dev