* Tanmay Das <
tanma...@gmail.com> [200408 12:17]:
> Hey Gophers,
> My very first post here.
>
> Today I faced an unexpected power outage and I wanted to tinker with Go a
> little bit. I wrote a simple hello world program and ran
> go run helloworld.go
>
> Strangely the code didn't run. In fact, the terminal prompt never exited. I
> kept running the same command over and over again but no luck. I checked
> all my configurations, my env vars, etc. and everything was ok. After
> ruling out all the possibilities it suddenly hit me: what if Go actually
> requires an internet connection to run a program for no apparent reason? I
> waited for the electricity to come back and as soon as I was connected to
> the internet I ran `go run` command again and voilą!
>
> Is this behavior expected? If it is, why did the go authors make such a
> decision? I mean making the internet connectivity a dependency for the
> execution of a program sounds counter-productive to me, honestly. :(
You didn't post any code, so it is really difficult to help you. No, Go
does not require an internet connection unless you write your program to
do so.
The best way to get help here is to go to
https://play.golang.org/ and
paste your code there (replacing what is there). Then click on the
"Share" button, and you will get a link that you can copy and paste into
a message to this group.
This will allow us to see the code and help you unravel your problem.
...Marvin