Skip to content

Marshal / Unmarshal - time.Time to timestamppb #694

Open
@go-aegian

Description

@go-aegian

when marshalling a time.Time with either timezone info 2024-03-31T15:09:16.822301-04:00 or without it as Z 2024-03-31T20:09:00.034949Z

the unmarshall throws this error "... readObjectStart: expect { or n, but found ", error found in #10 byte of ..."

How can I resolve this without having to create a custom type for time.Time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions