Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support to decode array and map #29

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fungaren
Copy link

@fungaren fungaren commented Jun 20, 2023

Add GetVariantArray to parse the value as an array.
All nodes in the array have individual tag.

Add GetArray to parse the value as an array.
All nodes in the array have the same tag.

Add GetVariantStringMap to parse the value as an key-value pair,
the key type is string and each item have individual tag.

Add GetStringMap to parse the value as an key-value pair,
the key type is string and each item have the same tag.

Summary

Describe the changes and fixes, or link to an existing issue.

Checklist

  • I have added code related to the library scope that does not focus on a specific use case.
  • I have not added a new dependency, or the code owners have agreed to it.
  • I have written tests for the new code, or the existing tests cover it completely.
  • I have not added // nolint comments to the code to fix linter issues.
  • I have not changed configuration files (CI, lint, templates, etc) without authorization.

fungaren added 2 commits June 20, 2023 21:24
Add GetVariantArray to parse the value as an array.
All nodes in the array have individual tag.

Add GetArray to parse the value as an array.
All nodes in the array have the same tag.

Add GetStringMap to parse the value as an key-value pair,
and the key type is string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant