What is the difference between the = and := operators, and what are the use cases for them? They both seem to be for an assignment?
=
:=
In Go, := is for declaration + assignment, whereas = is for assignment only.
For example, var foo int = 10 is the same as foo := 10.
var foo int = 10
foo := 10