mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 21:50:34 +07:00
22 lines
303 B
Go
22 lines
303 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
input "nto_cli/cmd"
|
|
"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)
|
|
|
|
fmt.Printf("%+v\n", structFields)
|
|
} |