paint-brush
Today I Learned: Pass By Reference on Interface Parameter in Golangby@imantumorang
18,433 reads
18,433 reads

Today I Learned: Pass By Reference on Interface Parameter in Golang

by Iman Tumorang5mApril 1st, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A simple diary about a simple thing that I learned about Pass By Reference in Golang. Pass by reference is when we pass the parameter without a pointer to that origin address of the value. In Golang, we can see these two in this example below. The above example shows a typical way we might pass the parameters based on their types (by references or by value) But, one day I faced a problem that I needed to solve about passing a parameter by reference. Here below I will explain the steps how I solve it.

People Mentioned

Mention Thumbnail
featured image - Today I Learned: Pass By Reference on Interface Parameter in Golang
Iman Tumorang HackerNoon profile picture
Iman Tumorang

Iman Tumorang

@imantumorang

Software Engineer

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

About Author

Iman Tumorang HackerNoon profile picture
Iman Tumorang@imantumorang
Software Engineer

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
Bitcoininsider
Imantumorang
Coffee-web