Pointers
6 lessons
- 01Introduction to PointersWhat pointers are and how to use the address-of and type-definition operators in Go.
- 02DereferencingHow to access and modify the values stored at a pointer's memory address.
- 03Pass by ReferenceHow pointers allow functions to modify original data rather than working on copies.
- 04Pointer ReceiversWhy and how to use pointer receivers for methods that need to modify struct state.
- 05Pointer PerformanceUnderstanding the trade-offs between stack and heap allocation when using pointers.
- 06Pointers CheatsheetA quick reference guide for pointer syntax, dereferencing, and receivers in Go.