Skip to content

time.Duration unmarshalling #2

Open
@acouvreur

Description

@acouvreur

Consider this struct

type MyStruct struct {
	timeout time.Duration
}

will produce an output like

func MyStruct_ptr2_json_unmarshal (iter *jsoniter.Iterator, out **time.Duration) {
    var val time.Duration
    time.Duration_json_unmarshal(iter, &val)
    if iter.Error == nil {
      *out = &val
    }
}

Where

time.Duration_json_unmarshal(iter, &val)

obviously does not exist.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @acouvreur

        Issue actions

          time.Duration unmarshalling · Issue #2 · json-iterator/tinygo