Skip to content

how to unmarshal int tail with L? #505

Open
@guotie

Description

@guotie

like this:

{
"v": 0L,
"amount": 100L
}

I want to unmarshal it to int64, but failed with:

invalid character 'L' after object key:value pair

这种不标准的情况有没有现成的方案来解决?

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