In this Go lecture, you will organize the basic types
bool,
string,
int, and
float64: which operations are available for each type, why integer division behaves “not like on a calculator,” how strings are concatenated using
+, where the boolean result for
if comes from, and why Go forbids mixing
int and
float64 without an explicit decision by the programmer. At the end, you will find a handy cheat-sheet table, a practical example, and common mistakes.