TIL a nice #GoLang trick! That doesn't happen so often these days. :D
TIL: you can test-export unexported Go identifiers. Add an export_test.go to the package: package foo var Export = unexported Test files don't ship with the build, so external _test packages can reach it while the real API stays unexported. The standard library does this everywhere.