Skip to content

Support Protocol Buffers #348

@peterfajdiga

Description

@peterfajdiga

Easyjson does not work with structs generated by the Protocol Buffers go generator (protoc-gen-go).

The problem is that easyjson generates the MarshalEasyJSON method with a by-value receiver (introduced in #15), but structs generated by protoc-gen-go shouldn't be copied.

Using a by-reference receiver should solve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions