Skip to content

Conversation

@ekazakas
Copy link
Contributor

@ekazakas ekazakas commented Jul 9, 2025

Goal of this PR

Sometimes it can be useful to get the registered struct types from TypeResolver and instantiate empty structs for unmarshalling.

How did I test it?

Registering custom struct and then fetching it's type using modified library.

Comment on lines 121 to 123
TypeOf(name string) (reflect2.Type, error)

NamesOf(typ reflect2.Type) ([]string, error)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add comments to these.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@nrwiersma nrwiersma merged commit 07bcb49 into hamba:main Jul 22, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants