This repo demonstrates that it's possible, in Go, to still access structs
defined within internal
if they're returned by public functions defined
outside of internal
.
- The
internalized
module has a single packagea
which exposes a functionMyFunc
, returning an internal type. - The
uses-internalized
module has amain
function which importsa.MyFunc
, executes it and can access the internal type.