Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is json tag is not used in this tool #281

Open
sevenguin opened this issue Jan 17, 2022 · 1 comment
Open

Is json tag is not used in this tool #281

sevenguin opened this issue Jan 17, 2022 · 1 comment
Labels

Comments

@sevenguin
Copy link

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.

@Ghvstcode Ghvstcode added the bug label Jun 24, 2022
@fatelei
Copy link
Collaborator

fatelei commented Jul 30, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants