main() is just a function.
Which means you can call it.
From init().
https://play.golang.org/p/lFZ8f0XtIAi
#golang
-
Show this thread
Replying to @dgryski
Even without the init, this is pretty neat -- calling main recursively and simulating the stack to get around main being niladic
2:25 PM - 12 Apr 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.