Skip to content

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

@bramp

Description

@bramp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions