ForEach¶
func ForEach[T any](structInstance T, function func(key string, value any, tag reflect.StructTag))
Takes a struct and calls the passed in function for each of its visible fields, passing to in the field's name, value and tag.
func ForEach[T any](structInstance T, function func(key string, value any, tag reflect.StructTag))
Takes a struct and calls the passed in function for each of its visible fields, passing to in the field's name, value and tag.