It is perfectly fine to use a package name other than the folder name. If we do so, we still have to import the package based on the directory structure, but after the import we have to refer to it by the name we used in the package clause.
For example, if you have a folder $GOPATH/src/mypck, and i...