method
TextListField.ReadHooks
Set hooks that shape the returned list.
Arguments
| Argument | Type | Description |
|---|---|---|
value | ReadHooks[[]string] | A field.ReadHooks[[]string] value containing read hooks. |
Returns
The updated TextListField; the original field is unchanged.
TextListFieldHow it works
Replaces configured read hooks. AfterRead can change the returned list without rewriting stored values.
Full signature
func (f TextListField) ReadHooks(value ReadHooks[[]string]) TextListFieldRelated types
TextListFieldA configurable list of strings.