By mswatcher
via openmymind.net
Published: Jan 11 2013 / 09:35
In Go, types (functions, structures, variables, ...) are exported based on the casing of the first letter. In our example not only is Unicorn accessible from outside, but so too are its Name and Age members. weight on the other hand, is not.
Add your comment