Go keeps arithmetic simple, predictable, and strict. No hidden behavior, no surprises.
Adds two values.
a := 10
b := 5
c := a + b // 15Also used for string concatenation:
s := "Go" + "Lang"Subtracts right from left.
a := 10
b := 5
c := a - b // 5Multiplies values.
a := 10
b := 5
c := a * b // 50Divides left by right.
a := 10
b := 5
c := a / b // 2- Integer division truncates decimals
a := 10
b := 3
c := a / b // 3 (not 3.33)Returns remainder.
a := 10
b := 3
c := a % b // 1These combine operation + assignment.
a := 10
a += 5 // 15a := 10
a -= 5 // 5a := 10
a *= 2 // 20a := 10
a /= 2 // 5a := 10
a %= 3 // 1Go is strict:
var a int = 10
var b float64 = 3.5
// ❌ invalid
// c := a + bc := float64(a) + b- All arithmetic is type-safe
- No automatic mixing of
int,float64, etc. - Integer division drops decimals
%only works on integers- Strings can only use
+
+→ combine / grow-→ reduce / offset*→ scale/→ split%→ leftovers
Go arithmetic is intentionally minimal and strict. You get predictable math behavior without hidden conversions or runtime surprises — which is exactly why it scales well in systems and backend engineering.