go-sqlmock icon indicating copy to clipboard operation
go-sqlmock copied to clipboard

Is json tag is not used in this tool

Open sevenguin opened this issue 3 years ago • 1 comments
trafficstars

type Temp struct { SourceType stringjson:"SourceKind"} when i mock like this: mockRows := sqlmock.NewRows([]string{"source_kind"}) it's unusefule, bug when i mock like this: mockRows := sqlmock.NewRows([]string{"source_type"}) it's ok.

sevenguin avatar Jan 17 '22 12:01 sevenguin

Please post some example code working on the Go Playground. Here is a template.

fatelei avatar Jul 30 '22 08:07 fatelei