Open massar opened 7 years ago
In:
https://github.com/tridentli/pitchfork/commit/e4787a3417bf5abb124cf72c75ed112708fc4782
we introduced the use of reflection to fetch a field value; no error checking is being done, no default is being fallen back on.
Instead call:
_, _, value, err := StructDetails(ctx, pf.Config, fieldname, SD_Perms_Ignore, SD_Tags_Ignore)
and voila, we got the field value, including error checking etc.
Also take the moment to document this magic CFG_ behavior.
In:
https://github.com/tridentli/pitchfork/commit/e4787a3417bf5abb124cf72c75ed112708fc4782
we introduced the use of reflection to fetch a field value; no error checking is being done, no default is being fallen back on.
Instead call:
and voila, we got the field value, including error checking etc.
Also take the moment to document this magic CFG_ behavior.