vektah / dataloaden

go generate based DataLoader
MIT License
530 stars 79 forks source link

fix: Error when trying to generate code in an empty directory #60

Closed KamikazeZirou closed 2 years ago

KamikazeZirou commented 2 years ago

If the code generation location is an empty directory, determine the package name from the module path and directory name.