Description
Used to assign values to variables. `=`, `+=`, `-=`, `*=`, `/=`, `%=`, etc.
Pros & Cons
✅ Pros
- Conciseness.
❌ Cons
- None.
When to Use
Updating variable values.
Example
Using assignment operators.
x := 10
x += 5 // x is now 15
x *= 2 // x is now 30
fmt.Println(x)
Best Practices
Common in loops and counters.
