Your Question
Is there any way to pass additional data to hooks? I need to pass the user ID of the current logged user to the models' hooks, because I have a log table where I need to store every operation users do (create, update, delete...) as a JSON field, along with the user ID.
The document you expected this should be explained
https://gorm.io/docs/hooks.html#content-inner
Expected answer
If it is possible, how to pass additional data to hooks.
Comment From: nikzanda
https://gorm.io/docs/settings.html this is the documentation page I was looking for. @jinzhu In my opinion, it would be better to reference this page on the hooks page (https://gorm.io/docs/hooks.html)