Skip to content

Glossary: Go Basics

Shortcut operators (+=, ++)

Also written: +=, -=, *=, ++, --

Shortcuts that change a variable in place: `x += 5` means `x = x + 5`, and `x++` adds 1 (`x--` takes 1 away).

Where the book teaches it