DecodeHook, if set, will be called before any decoding and any type conversion (if WeaklyTypedInput is on). This lets you modify the values before they're set down onto the resulting struct.

If an error is returned, the entire decode will fail with that error.

DecodeHook is referenced in 0 repositories