Documentation
¶
Overview ¶
Package structx provides utilities for working with structs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldIndexByTag ¶
FieldIndexByTag returns the index of the field with the given tag key and value. Returns -1 if the field is not found. Panics if the type's kind is not a struct.
func InferFieldNames ¶
InferFieldNames returns the field names of the given struct type and tag key. Includes only exported fields. If a field's tag key is empty or not set, uses the field's name. If a field's tag key is set to '-', omits the field. Panics if the type's kind is not a struct.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.