Grokking Go
Vote

0% completed

​

Operators Precedence

Operator precedence determines the order in which operators are evaluated in an expression. Go follows a specific hierarchy, meaning some operations are performed before others. Understanding precedence helps in avoiding logical errors in calculations and conditions.

Operator Precedence in Go

The table below lists operators from highest to lowest precedence (higher precedence operators are evaluated first).

PrecedenceOperator(s)Description
Highest*, /, %, <<, >>, &,

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content