While importing modules in a different project, a subdirectory within a package is not imported, but the files within the package are imported directly under the package.
For example, the project has the following structure
- credential
|
- intergrity
|
- samplefile.go (starts with "package integrity )
When I import this module through ‘go mod’, the download happens as follows –
- credential
|
- samplefile.go (starts with "package credential" )
When I directly git clone the project, the original structure is preserved.
What might cause these changes ?