// Execute same as regular Execute
Execute same as regular Execute
// Execute same as regular Execute
func (tpl *MapStruct) Execute(logger *zap.Logger, data interface{}) map[string]interface{} {
	result := make(map[string]interface{})
	for key, value := range tpl.tpl {
		switch v := value.(type) {
		case *template.Template:
			result[key] = Execute(logger, v, data)
		case *MapStruct:
			result[key] = v.Execute(logger, data)
		default:
			result[key] = v
		}
	}
	return result
}
func ( tpl * MapStruct ) Execute ( logger * zap . Logger , data interface { } ) map [ string ] interface { } { result := make ( map [ string ] interface { } ) for key , value := range tpl . tpl { switch v := value . ( type ) { case * template . Template : result [ key ] = Execute ( logger , v , data ) case * MapStruct : result [ key ] = v . Execute ( logger , data ) default : result [ key ] = v } } return result }
Execute same as regular Execute
Execute same as regular Execute