mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 19:20:34 +07:00
dir, service blplt generation (without imports, logic)
This commit is contained in:
16
generation/gen.go
Normal file
16
generation/gen.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user