func cleanComponent(c *components.Component) (err error) { if c == nil { return } c.Context, err = helpers.CleanDeepMap(c.Context) if err != nil { return } c.With, err = helpers.CleanDeepMap(c.With) return }
func cleanMiddleware(m *middlewares.Middleware) (err error) { m.Options, err = helpers.CleanDeepMap(m.Options) if err != nil { return } m.Template, err = helpers.CleanDeepMap(m.Template) if err != nil { return } m.Context, err = helpers.CleanDeepMap(m.Context) return }