col := &xorm.core.Column{ Name: "email", Type: "varchar", Length: 255, Nullable: false, }
cols, err := engine.TableInfo(&User{}) if err != nil { // handle error } for _, col := range cols { fmt.Println(col.Name) }This code gets the columns of a table that corresponds to the User struct and prints out their names. Overall, the go-xorm.core package provides a convenient and easy-to-use ORM tool for working with databases in Go programming language.