@@ -56,6 +56,13 @@ type TestWithTime struct {
|
||||
TimeField int64 `sql:"nn"`
|
||||
}
|
||||
|
||||
type TestWithJsonStructTag struct {
|
||||
ID int `json:"id" sql:"pk"`
|
||||
Int64Field int64 `json:"int64Field" sql:"nn"`
|
||||
IntField int `json:"intField" sql:"nn"`
|
||||
StringField string `json:"stringField" sql:"nn"`
|
||||
}
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
log.SetupLogs("Info")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user