Code Test: Link:http://localhost:8080/update_city/9 Method:Post Json post:
Code insert: Test: Link:http://localhost:8080/insert_city Method:Post Json post Test with php:
Code: Test link: http://localhost:8080/city/1
View part 1 in here:http://www.gacoder.info/golang-p1setup-ginmysql/ Tạo struct City 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…
Setup project: Setup gin Setup mysql Setup database with name gin Create file main.go Chú ý line 18 Trong đó user:user mysql pass:passmysql database:name database…