feat: relatives paths

This commit is contained in:
2025-02-14 13:26:44 +07:00
parent 013a3be72b
commit 8290462d92
5 changed files with 42 additions and 24 deletions

View File

@@ -9,7 +9,7 @@ import (
)
func Generate(structName string, fields []entities.Field) {
mkPath := strings.ToLower(fmt.Sprintf("%s/frontend/%s", utils.FindFrontendPath() , structName))
mkPath := strings.ToLower(fmt.Sprintf("%s/frontend/src/%s", utils.FindFrontendPath() , structName))
if err := os.Mkdir(mkPath, 0755); err != nil {
panic(err)
}