Learning Go: Functions

Mike McMillan
Level Up Coding
Published in
6 min readMar 20, 2020

--

Photo by Temple Cerulean on Unsplash

In this article, I’m going to demonstrate how to write and use functions in Go. I’ll discuss both value-returning functions and functions which are used just for their effects (what are called void functions in some programming languages).

The Function Definition and Function Call Syntax Templates

--

--

Mike McMillan writes about computer programming and running. See more of his writing and courses at https://mmcmillan.gumroad.com.