No, the imported package consists of all files in the directory denoted by
the import path.

On Sat, Jan 20, 2018, 23:48 Peng Yu <pengyu...@gmail.com> wrote:

> OK. In this example, if there are multiple the files in mypackage
> directory. All of them will be loaded. Is there a way to only import a
> single go file when there are multiple go files in a package
> directory?
>
> On Sat, Jan 20, 2018 at 4:32 PM, Jan Mercl <0xj...@gmail.com> wrote:
> > Look for the term "exported" in the language specification.
> >
> > On Sat, Jan 20, 2018, 23:30 Peng Yu <pengyu...@gmail.com> wrote:
> >>
> >> Why is only Add allowed? Where is this documented?
> >
> > --
> >
> > -j
>
>
>
> --
> Regards,
> Peng
>
-- 

-j

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to