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

gojay generated code doesn't work for type names starting with K #163

Open
bramp opened this issue Apr 17, 2021 · 0 comments · May be fixed by #164
Open

gojay generated code doesn't work for type names starting with K #163

bramp opened this issue Apr 17, 2021 · 0 comments · May be fixed by #164

Comments

@bramp
Copy link

bramp commented Apr 17, 2021

When generating code with gojay, it does not support types starting with K. For example:

type Key struct {...}

generates the code:

func (k *Key) UnmarshalJSONObject(dec *gojay.Decoder, k string) error {
...
}

This doesn't compile, since both the alias and a argument use the same variable, k.

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

Successfully merging a pull request may close this issue.

1 participant