On Thu, Jan 24, 2019, at 07:00, 伊藤和也 wrote:
> Is it possible?
> package main
>
> var Number int = 100
> func main() {}
>
> package hello
>
> import "fmt"
>
> func abc() {
> fmt.Println(Number)
> }2019年1月24日木曜日 11時27分57秒 UTC+9 伊藤和也:
> > package main
> >
> > var Number int = 100
> >
> > func main() {
> >
> > }
No, if you simply try this you'll see that you get an error:
import "main" is a program, not an importable package
—Sam
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.