title: How to test a unexported (private) function in go (golang)?
body: <p>I was interested in creating unit test for "unexported (private) functions" in go. However, its basically really hard to create unit tests form them in the test package because I have to make them "public". Which in the end, defeats the whole point of them being private. The point is that these helper function help modularize and now that they are modular, it would be nice to be able to create unit tests for them without making them available to everyone except the testing package, nice they are not functions that should be accessed or used by anyone else except the testing suite or the actual package itself.</p>
  
  <p>Any suggestions? Is it possible to <strong>only</strong> export to its own package and 1 additional package or something of that sort in go?</p>