I decided to structure the code and divide it into packages.
It turned out that the Main package is divided into several files in a directory and contains Пакет1.1 and this package contains Пакет 2.1 . As a result, mistakes are made due to the fact that something is written incorrectly.
Tell me examples with nested packages located in the application itself (that is, not installed in the shared folder) I connect with params "./Packages/Params/" structure is approximately:
main.go (несколько файлов пакета main в одной папке) -Packages --PackagesGroup1 ---package1.go ---SubPackagesGroup1 ----subpackage1.go --PackagesGroup2 ---package2.go