Skip to content

Glossary: Go Basics

Literal

Also written: literals

A value typed straight into your code, such as `42` or `"mug"`. Go treats it as a constant.

Where the book teaches it