// NewEventListener creates a new event listener.
NewEventListener creates a new event listener.
// NewEventListener creates a new event listener .
func NewEventListener( key matchkey.MatchKey_struct, async bool, function func( event Event_struct, args ...interface{}) ) ( return_report error_report.ErrorReport_struct ){
	var event_listener EventListener_struct;
	if( (key.Matchkey_type > 0) && (key.Matchkey_type <= 3) ){
		event_listener.key = key;
		event_listener.async = async;
		event_listener.function = function;
		return_report = error_report.New( 0, map[string]interface{}{ "event_listener": event_listener }, nil );
	} else{
		return_report = error_report.New( ERROR_CODE_INVALID_MATCHKEY_TYPE, map[string]interface{}{ "message": "Invalid Matchkey_type property for the given Matchkey_struct `key` argument." }, nil );
	}
	return return_report;
}
func NewEventListener ( key matchkey . MatchKey_struct , async bool , function func ( event Event_struct , args ... interface { } ) ) ( return_report error_report . ErrorReport_struct ) { var event_listener EventListener_struct ; if ( ( key . Matchkey_type > 0 ) && ( key . Matchkey_type <= 3 ) ) { event_listener . key = key ; event_listener . async = async ; event_listener . function = function ; return_report = error_report . New ( 0 , map [ string ] interface { } { " " : event_listener } , nil ) ; } else { return_report = error_report . New ( ERROR_CODE_INVALID_MATCHKEY_TYPE , map [ string ] interface { } { " " : " " } , nil ) ; } return return_report ; }
NewEventListener creates a new event listener.
NewEventListener creates a new event listener .
//Variables //Parametres //Function //Return