Go: Gin

0. Introduction

Gin is an HTTP web framework written in golang, the home page is here:

https://github.com/gin-gonic/gin

1. Usage records

1.1 POST

Adding too many tabs to the binding tag will cause problems. At present, there is no problem with adding only one space, but the format is a bit ugly, and it is not clear why.

1.2 Database

http://www.01happy.com/golang-go-sql-drive-mysql-connection-pooling/

The golang database/sqlpackage comes with its own database connection pool, you can refer to the citation above to learn

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325370161&siteId=291194637