@cockroachdb https://www.cockroachlabs.com/blog/outsmarting-go-dependencies-testing-code/ … it seems like a cleaner solution to me, to export stuff from sql, but in foo_test.go files
-
-
Replying to @TheMerovius @CockroachDB
Then you can import them freely during tests but they aren't exposed to production code
1 reply 0 retweets 0 likes -
Replying to @TheMerovius
Thanks for the feedback. In Go a name is exported if it begins w a capital letter. No way to "export stuff [..] in foo_test.go"
1 reply 0 retweets 0 likes -
Replying to @CockroachDB
of course, there is o.O Write "var Foobar = fobar". Now you exported foobar under a public name
1 reply 0 retweets 0 likes
Replying to @TheMerovius
This 140 char count is tough. Feel free to hit us up on Gitter if you want to discuss:https://gitter.im/cockroachdb/cockroach …
1:16 PM - 16 Jun 2016
0 replies
0 retweets
0 likes
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.