Golang p2:Search,paging with gin mysql

View part 1 in here:http://www.gacoder.info/golang-p1setup-ginmysql/
Tạo struct City

type City struct {
    Id         int
    Name       string
    Population int
}

Search,paging

Test with postman
Link:http://localhost:8080/list
Method:Get
Description:Show all list city

Param get:
page:current page
per_page:record per page
name: name city

Example:http://localhost:8080/list?name=Berlin&page=1&per_page=2

Full code: