Working with variables and conditionals in Go Lang

Jonathan Fielding
3 min readJan 2, 2021

I recently started to learn Go Lang, and as part of this I have been learning about variables and how they differ to variables in other languages I have worked with such as JavaScript and PHP.

Getting to grips with variables

In Go, variables are explicitly declared and when you compile your application, Go will infer the type of…

--

--

Jonathan Fielding

Staff Engineer working for @Spendesk, speaker about web things, writing about tech, contributor to open source. If you like what I write make sure to follow.