package main import ( "fmt" input "nto_cli/cmd" "nto_cli/utils" "os" ) func main() { fmt.Print("struct name, path to file (including struct): ") structName, path := input.Input() file, err := os.Open(path) if err != nil { panic(err) } defer file.Close() structFields := utils.GetStructFields(file, structName) fmt.Println(structFields) }