go – Does capitalization affect variables within a function block in golang?-ThrowExceptions

Exception or error:

If I declare a variable or parameter in a function, does capitalization have any affect or meaning?

Obviously for methods and variables outside of functions it exports them, but what about the above?

How to solve:

Variables declared inside a function block are always private, or unexported.
Capitalization has no effects in this case.

Leave a Reply

Your email address will not be published. Required fields are marked *