Exporting
In Go, rather than public
and private
sections, as in C++,
items starting with a capital letter is exported by the compiler.
When importing a package, you can only access exported items.
Its that simple.
In Go, rather than public
and private
sections, as in C++,
items starting with a capital letter is exported by the compiler.
When importing a package, you can only access exported items.
Its that simple.