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?
Hi @Saraj_singh,
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
packa
,packb
andpackc
(only one in each of them) instead ofmain
. Then, Go creates three object files:packa.a
,packb.a
andpackc.a
in total.
We hope Educative has inspired you to further your learning, and please drop us a note if you have any other questions or concerns.