Exported but Restricted inside `internal` package.

Information about internal package , _ and . imports in Golang! If you come across any package named internal or you write a package with the name internal then it is treated special in Golang world! Only question to ask about it is, Who can import this internal package? And the answer is, any file out side the package containing internal package can NOT import internal because the name is self explanatory. Whereas, any file inside package that contains internal package, can import that internal package. ...

February 28, 2018 · Pranav Gore