Understand Go pointers in less than 500 words

What is the variable?

image from https://urlzs.com/C2Qif
image from https://urlzs.com/c4BSG

What is the pointer?

image from https://urlzs.com/Akb5a

Why do we need pointers?

TL;DR

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hiep Nguyen

Hiep Nguyen

More from Medium

Unix domain sockets in golang

Golang Debugging with Delve — [Step by Step]

Optimizing Memory by Changing the Order of Struct Field

An OpenMP-inspired approach to parallelizing loops in Go