Golang Improper package structure exports unneeded members
Do you want to write unit tests for methods but don't want to expose them to outside of the package? Then, move the methods to internal package. The functions defined in internal package are not exposed. Let's learn how to use it.