Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFields ¶
ExtractFields extracts the values of struct fields that have a "json" tag matching any of the targetTags. It accepts a struct or a pointer to a struct. Unexported fields, fields without a "json" tag, and fields with a json tag of "-" are ignored. It correctly handles json tag options like "omitempty" by only considering the name part of the tag.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.