mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 16:20:34 +07:00
21 lines
329 B
Go
21 lines
329 B
Go
package main
|
|
|
|
import (
|
|
input "nto_cli/cmd"
|
|
"nto_cli/generation"
|
|
"nto_cli/utils"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
structName, path := input.Input()
|
|
file, err := os.Open(path)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
defer file.Close()
|
|
|
|
structFields := utils.GetStructFields(file, structName)
|
|
generation.Generate(structName, structFields)
|
|
}
|