On Sun, Mar 6, 2022 at 11:47 AM jlfo...@berkeley.edu
<jlforr...@berkeley.edu> wrote:
>
> Fine, but notice that "fileStat" isn't capitalized. This means this symbol 
> isn't
> exported outside the "os" package. Yet, somehow the "fileinfo" variable is 
> assigned
> this type.

This has been answered, but I'm going to give a different slant on the
answer.  The fact that fileStat is not capitalized means only that no
other package can write os.fileStat.  It does not have any effect on
anything other than naming.  In particular it does not mean that some
other package can't manipulate a value of type os.fileStat.

Ian

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVyfuikGHRUeays4TEbicbE1q-WUYnVsj__-M1z%3DHVh6g%40mail.gmail.com.

Reply via email to