nil value cannot be assigned to a variable that has no type.
Examples of incorrect code:
incorrect := nil var incorrect = nil
Examples of correct code:
incorrect := nil var correct *MyType = nil