You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hooks provided via the options.DecodeHooks are called after the default hooks ref. I think the hooks provided should be executed first, so that the users have the option to bypass the default hook behavior. Currently, you cannot override the fixupStringSliceHookFunc or other default hooks behavior because they run before any custom hooks. Fixing this just means swapping the order of the append call linked.
#35 is related but still a separate issue. It would allow you to bypass the problem by implementing a custom unmarshal hook for your type, but if you wanted to override the string slice conversion behavior entirely, it's still not possible today. I don't think cilium needs this particular functionality now that things are relying on that behavior, but other users of the hive module might want the ability to override the default hooks.
The text was updated successfully, but these errors were encountered:
Hooks provided via the
options.DecodeHooks
are called after the default hooks ref. I think the hooks provided should be executed first, so that the users have the option to bypass the default hook behavior. Currently, you cannot override thefixupStringSliceHookFunc
or other default hooks behavior because they run before any custom hooks. Fixing this just means swapping the order of the append call linked.#35 is related but still a separate issue. It would allow you to bypass the problem by implementing a custom unmarshal hook for your type, but if you wanted to override the string slice conversion behavior entirely, it's still not possible today. I don't think cilium needs this particular functionality now that things are relying on that behavior, but other users of the hive module might want the ability to override the default hooks.
The text was updated successfully, but these errors were encountered: