Skip to content

Glossary: Go Basics

var

Keyword for declaring a variable where you name the type yourself and may leave out the value, which then gets the zero value.

Where the book teaches it

Related terms

:= (short variable declaration)