Difference between := and = operators in Go

In Go, what is the difference between the = and := operator? They both seem to be for assignment? This might be obvious but I can’t seem to find it in the docs.

1 Like

Only = is the assignment operator.

:= is a part of the syntax of the Short variable declarations clause.