Skip to content

Commit

Permalink
Add comment to parseStructFields
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Jan 23, 2024
1 parent d163fb3 commit 29e7fc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions serializer/serix/struct_fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ type structField struct {
settings TagSettings
}

// parseStructFields parses the struct fields of the given struct type.
// It returns a slice of structField (only the ones with valid serix tags).
// Neither the interfacesRegistry, the typeSettingsRegistry nor the validatorsRegistry are used by this function.
// The returned result is only based on the struct tags.
func parseStructFields(structType reflect.Type) ([]structField, error) {
structFields := make([]structField, 0, structType.NumField())

Expand Down

0 comments on commit 29e7fc2

Please sign in to comment.