educative.io

Educative

What is naming convention for package? Does one package create one object file, regardless of number of source files in package?

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.

  1. Pacakges’ names must be short and clear. They are lowercase with no under_scores or mixedCaps.

  2. Suppose a package holds 3 files with packa, packb and packc (only one in each of them) instead of main. Then, Go creates three object files: packa.a, packb.a and packc.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.