Example application of Gin (Go web framework) and Ent (ORM).
$ go mod tidy
$ go install entgo.io/ent/cmd/entc
# Run `entc init` from the root directory of the project as follows:
$ entc init User
# Run `go generate` from the root directory of the project as follows:
$ go generate ./ent
$ entc describe ./ent/schema
$ go get -u github.com/swaggo/swag/cmd/swag
$ go mod tidy
$ go run main.go
and now you can visit this url for the test of API: http://localhost:8088/swagger/index.html