1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 18:37:05 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-03-20 18:16:35 +02:00
parent 34387a4a5c
commit 3a00e785ea
7 changed files with 57 additions and 19 deletions

View File

@@ -197,7 +197,8 @@ func (opt OptionFunc) Apply(c *ControllerActivator) {
}
// IgnoreEmbedded is an Option which can be used to ignore all embedded struct's method handlers.
//
// Note that even if the controller overrides the embedded methods
// they will be still ignored because Go doesn't support this detection so far.
// For global affect, set the `IgnoreEmbeddedControllers` package-level variable to true.
var IgnoreEmbedded OptionFunc = func(c *ControllerActivator) {
c.SkipEmbeddedMethods()