Skip to content

HasField and Instance

Compare
Choose a tag to compare
@mvndaai mvndaai released this 22 Jun 05:12

New function HasField recursively unwraps to see if a field exists.

Instance

There is a new Instance struct to enable configuration of a non-global News, Wraps, and Handle.

  • CreateHooks are functions to update the context one a New/Wrap
  • HandleHooks are functions that happen on Handle
  • FieldsAsSlice makes getting AllFields return a slice of all values rather than the deepest

This allows for better testing. There are no longer private global configurations.