paint-brush
How And When To Use Pointers in Goby@wagslane
357 reads
357 reads

How And When To Use Pointers in Go

by Lane Wagner3mSeptember 25th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A pointer is a variable that stores the address of a value, rather than the value itself. Pointers can be useful, but in the same way that they are useful, they can be dangerous. When you dereference a pointer that has no value, the program will panic. There are some rules of how and when to use pointers in Go. Go is wanted for its simplicity, explicitness, speed, and low memory consumption. It has been consistently displacing other backend languages like Ruby, Python, C# and Java.

People Mentioned

Mention Thumbnail
featured image - How And When To Use Pointers in Go
Lane Wagner HackerNoon profile picture
Lane Wagner

Lane Wagner

@wagslane

Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

About @wagslane
LEARN MORE ABOUT @WAGSLANE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Lane Wagner HackerNoon profile picture
Lane Wagner@wagslane
Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Coffee-web