What is the naming convention for the package?? Does one package create one object file, regardless of the number of source files in the package?
What is naming convention for package? Does one package create one object file, regardless of number of source files in package?
This is Maham Amjad from Educative. Thank you for reaching out to us. I’ll answer your questions one by one.
Pacakges’ names must be short and clear. They are lowercase with no under_scores or mixedCaps.
Suppose a package holds 3 files with
packc(only one in each of them) instead of
main. Then, Go creates three object files:
We hope Educative has inspired you to further your learning, and please drop us a note if you have any other questions or concerns.