News for hackers. Stuff that matters.
Re:A JavaScript parser and interpreter written in Go by codebeaker on Thursday November 28, 2013 @03:27AM (#6813612)
It's possible that if you have packages that understand flags (config package, with flags in init(), for example) that if you include it after the testing package, or before. One of them won't accept flags. (because flag.Parse() has already been called)
Re:A JavaScript parser and interpreter written in Go by 1631- on Thursday November 28, 2013 @12:00PM (#6815314)
You can't rely on the order of imports initialization anyway. See http://golang.org/ref/spec#Program_execution .. I believe that's also the reason, you shouldn't call `flag.Parse()` in `init()`