Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Using Pointers as Function Parameters in Go

Gary Clarke via YouTube

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

Reviews

Start your review of Using Pointers as Function Parameters in Go

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.