com/jinzhu/gorm" and "github.com/go-sql-driver/mysql" package to interact with my database and trying to get the description of table but didn't found the function. Please help
相关问题
- Golang mongodb aggregation
- How to flatten out a nested json structure in go
- how to install private repo using glide golang
- How to convert a string to a byte array which is c
- IntelliJ 2017.1.2 GOLANG debug does not work on br
With gorm you can perform a custom query and get her return in a struct, the following is an example of how to show the description of table:
View more by gorm: http://jinzhu.me/gorm/advanced.html#sql-builder