mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 17:00:33 +07:00
feat: field gen
This commit is contained in:
8
main.go
8
main.go
@@ -1,8 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
input "nto_cli/cmd"
|
||||
"nto_cli/generation"
|
||||
// "nto_cli/generation"
|
||||
"nto_cli/utils"
|
||||
"os"
|
||||
)
|
||||
@@ -16,6 +17,9 @@ func main() {
|
||||
defer file.Close()
|
||||
|
||||
structFields := utils.GetStructFields(file, structName)
|
||||
for _, field := range structFields {
|
||||
fmt.Println(field.Generate())
|
||||
}
|
||||
|
||||
generation.Generate(structName, structFields)
|
||||
// generation.Generate(structName, structFields)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user