Tag:gorm

  • SQL + RESTful Open Source GO Scaffolding Tool ginbro (gin and gorm’s brother) Detailed

    Time:2019-9-20

    Install Felix git clone https://github.com/dejavuzhou/felix cd felix go mod download go install Echo “Add GOBIN to PATH environment variables” Echo “or” go get github.com/dejavuzhou/felix echo “go build && ./felix -h” What is Ginbro Gin Scaffolding Tool: Because MySQL database + gin + GORM is used many times to develop RESTful API program in work, so […]

  • Basic usage of golang Gorm operation MySQL and Gorm

    Time:2019-3-22

    Golang’s official operation of MySQL is a little troublesome, so it uses gorm. Here’s a brief introduction to the use of Gorm Download gorm: go get -u github.com/jinzhu/gorm Introduce Gorm into the project: import ( “github.com/jinzhu/gorm” _ “github.com/jinzhu/gorm/dialects/mysql” ) Define DB connection information func DbConn(MyUser, Password, Host, Db string, Port int) *gorm.DB { connArgs := […]

  • PHP turns to Go, and uses Laravel and ThinkPHP to build a ThinkGo framework

    Time:2019-3-12

    ThinkGo is a lightweight MVC framework of Go language. At present, it supports the basic functions of Web frameworks such as routing, middleware, controller, request, response, Session, view and log. It is dedicated to making the code concise and expressive, and helping developers build a Web application quickly. install go get -u github.com/thinkoner/thinkgo usage package […]