We break down the
bool type in Go and comparison operators:
==,
!=,
<,
<=,
>,
>=. We will understand why a comparison always returns
bool, how to compare numbers and strings, why Go forbids comparing incompatible types, and what mistakes beginners make most often.