Re: Go Style Guide

2014-02-20 Thread Gustavo Niemeyer
On Thu, Feb 20, 2014 at 6:00 PM, Nate Finch wrote: > Well, nevermind. That's just terrible. It's just black box testing the > same as any external tests, except obfuscated because you're not using the > package name. I don't know why you'd ever want to do that. Right, exactly. gustavo @ http

Re: Go Style Guide

2014-02-20 Thread Nate Finch
Ahh, yes, hmm, I didn't really think about it, and figured import . was giving them access to unexported symbols (since I've never used import ., since it always seemed like a Bad Idea). However, it doesn't do that, you still only have access to exported symbols. Well, nevermind. That's just ter

Re: Go Style Guide

2014-02-20 Thread Gustavo Niemeyer
On Thu, Feb 20, 2014 at 5:31 PM, Nate Finch wrote: > One thing that I thought was very interesting was using import dot to get > around circular references for tests. I actually hit this exact problem > just yesterday. > > https://code.google.com/p/go-wiki/wiki/Style#Import_Dot I prefer to impor

Go Style Guide

2014-02-20 Thread Nate Finch
Thought this would be interesting to the members of this list: https://code.google.com/p/go-wiki/wiki/Style One thing that I thought was very interesting was using import dot to get around circular references for tests. I actually hit this exact problem just yesterday. https://code.google.com/p