-
I did a quick calculation from their benchmark and they seem to be ~1.6x slower than HttpRouter while providing almost the same functionality as chi.
Well the regex matching does seem to be missing …
-
Is it possible to create a custom validation rule to do a cross field validation in a struct fields with validation.ValidateStruct?
thanks
-
![pigeony](https://cloud.githubusercontent.com/assets/6095869/24336654/d7f1f638-12de-11e7-9155-97385135cb12.jpg)
-
Im using goimports as a formatting tool and have code that is vendored. So if I remove the validation line below and run formatting I will not get the validation imports line back.
```go
import (
…
-
test code(dbx.go):
```
package main
import (
"github.com/go-ozzo/ozzo-dbx"
_ "github.com/go-sql-driver/mysql"
)
type Foo struct {
ID uint
Name string
…
-
在您的库包中,没有看到做数据库连接池的设置选项,您可以把这个封装进去吗?
```
db.SetMaxOpenConns(p.MaxOpenConns)
db.SetMaxIdleConns(p.MaxIdleConns)
```
-
Umbrella issue for tracking API validation tasks, scopes:
- [x] Research on requirements, e.g. what kind of validation do we need
- [x] Research on existing solutions
- [x] Proposal or demonstratio…
-
**Transferred, see https://github.com/dyweb/gommon/issues/3 for updates**
Since logrus does not provide much for log filter by tag, the hook only get message filtered by tag and can't stop the log …
-
**Problem**:
* internal structs map to database structures
* decoding json from client to modify struct is not dynamic, happens the same every time based on struct tags
* some apis need to restri…
-
I think [this commit](https://github.com/go-ozzo/ozzo-dbx/commit/0e21bcb0bc03006bf6b2cace9619f13740dbff93) broke select queries in transactions again (which was fixed here: https://github.com/go-ozzo/…