+ Addition a + b
- Subtraction a - b
* Multiplication a * b
/ Division a / b
% Modulus a % bUsed with numeric types like int, float64.
== Equal to
!= Not equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal toUsed in conditionals to compare values.
&& Logical AND
|| Logical OR
! Logical NOTUsed with boolean expressions (e.g., in if or for loops).
age := 25
if age > 18 && age < 65 {
fmt.Println("Adult")
}= Assign
+= Add and assign
-= Subtract and assign
*= Multiply and assign
/= Divide and assign
%= Modulus and assignx := 10
x += 5 // x = 15Operate at the bit level, mostly used in systems programming:
& AND
| OR
^ XOR
&^ AND NOT
<< Left shift
>> Right shiftString concatenation uses +:
Booleans support &&, ||, ! only.
Ask the AI if you need help understanding or want to dive deeper in any topic