dir, service blplt generation (without imports, logic)

This commit is contained in:
2025-02-14 00:23:28 +07:00
parent a1df30a318
commit 742a685804
6 changed files with 61 additions and 4 deletions

16
generation/gen.go Normal file
View File

@@ -0,0 +1,16 @@
package generation
import (
"fmt"
"nto_cli/entities"
"os"
"strings"
)
func Generate(structName string, fields []entities.Field) {
mkName := strings.ToLower(fmt.Sprintf("./%s", structName))
if err := os.Mkdir(mkName, 0755); err != nil {
panic(err)
}
GenerateService(structName, mkName)
}