Gain a Splash of New Skills - Coursera+ Annual Just ₹7,999
Get 35% Off CFI Certifications - Code CFI35
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to use pointers as function parameters in Go to modify original data instead of working with copies. Understand Go's default pass-by-value behavior where functions receive copies of data, and discover when and how to pass pointers to allow functions to access and modify the original values in memory. Explore the fundamental differences between passing values versus pointers, examine practical examples with structs, and master when each approach makes sense in your Go programs. Practice with hands-on challenges that demonstrate pointer parameter usage and build essential skills for writing efficient Go code that can update data structures and avoid unnecessary copying.
Syllabus
Using Pointers as Function Parameters in Go
Taught by
Gary Clarke