// ParseAndExecuteMapStruct is like ParseAndExecute but takes mapstructure as input
ParseAndExecuteMapStruct is like ParseAndExecute but takes mapstructure as input
// ParseAndExecuteMapStruct is like ParseAndExecute but takes mapstructure as input
func ParseAndExecuteMapStruct(logger *zap.Logger, input map[string]interface{}, data interface{}) map[string]interface{} {
	tpl, err := ParseMapStruct(input)
	if err != nil {
		logger.Error("error parsing template", zap.Error(err))
		return input
	}
	return tpl.Execute(logger, data)
}
func ParseAndExecuteMapStruct ( logger * zap . Logger , input map [ string ] interface { } , data interface { } ) map [ string ] interface { } { tpl , err := ParseMapStruct ( input ) if err != nil { logger . Error ( " " , zap . Error ( err ) ) return input } return tpl . Execute ( logger , data ) }
ParseAndExecuteMapStruct is like ParseAndExecute but takes mapstructure as input
ParseAndExecuteMapStruct is like ParseAndExecute but takes mapstructure as input