go-sqlmock
go-sqlmock copied to clipboard
Is json tag is not used in this tool
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.
Please post some example code working on the Go Playground. Here is a template.