packages have nothing to do with files, if you are on some directory you
don't need to import any package, just use Number on other files

On Thu, Jan 24, 2019, 3:36 AM 伊藤和也 <kazya.ito.dr...@gmail.com> wrote:

> I couldn't import "main" package to other packages to use the variable
> "Number" and  I try to use "Number" in main package of different .go file
> in the same directory but I couldn't.
>
> 2019年1月24日木曜日 11時27分57秒 UTC+9 伊藤和也:
>>
>> package main
>>
>> var Number int = 100
>>
>> func main() {
>>
>> }
>>
>> --
> 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.
>

-- 
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