An example of gin contains many useful features
$ go get github.com/stevenlee87/go-gin-example
- Mysql
- Redis
Create a blog database and import SQL
You should modify conf/app.ini
[database]
Type = mysql
User = root
Password =
Host = 127.0.0.1:3306
Name = blog
TablePrefix = blog_
[redis]
Host = 127.0.0.1:6379
Password =
MaxIdle = 30
MaxActive = 30
IdleTimeout = 200
...
$ cd $GOPATH/src/go-gin-example
$ go run main.go
Project information and existing API