// RemoveEventByIndex removes the event at the given index from the events slice.
RemoveEventByIndex removes the event at the given index from the events slice.
// RemoveEventByIndex removes the event at the given index from the events slice .
func (event_dispatcher *EventDispatcher_struct) RemoveEventByIndex( index uint ) ( return_report error_report.ErrorReport_struct ){
	var preceding_events []Event_struct;
	var following_events []Event_struct;
	event_dispatcher.mutex.Lock();
	if( int(index) < len(event_dispatcher.events_slice) ){
		preceding_events = event_dispatcher.events_slice[:index];
		following_events = event_dispatcher.events_slice[(index+1):];
		event_dispatcher.events_slice = append(preceding_events, following_events...);
		return_report = error_report.New( 0, map[string]interface{}{ "events_slice_length": len(event_dispatcher.events_slice) }, nil );
	} else{
		return_report = error_report.New( ERROR_CODE_INDEX_OUT_OF_RANGE, map[string]interface{}{ "message": "index out of range.", "events_slice_length": len(event_dispatcher.events_slice) }, nil );
	}
	event_dispatcher.mutex.Unlock();
	return return_report;
}
func ( event_dispatcher * EventDispatcher_struct ) RemoveEventByIndex ( index uint ) ( return_report error_report . ErrorReport_struct ) { var preceding_events [ ] Event_struct ; var following_events [ ] Event_struct ; event_dispatcher . mutex . Lock ( ) ; if ( int ( index ) < len ( event_dispatcher . events_slice ) ) { preceding_events = event_dispatcher . events_slice [ : index ] ; following_events = event_dispatcher . events_slice [ ( index + 1 ) : ] ; event_dispatcher . events_slice = append ( preceding_events , following_events ... ) ; return_report = error_report . New ( 0 , map [ string ] interface { } { " " : len ( event_dispatcher . events_slice ) } , nil ) ; } else { return_report = error_report . New ( ERROR_CODE_INDEX_OUT_OF_RANGE , map [ string ] interface { } { " " : " " , " " : len ( event_dispatcher . events_slice ) } , nil ) ; } event_dispatcher . mutex . Unlock ( ) ; return return_report ; }
RemoveEventByIndex removes the event at the given index from the events slice.
RemoveEventByIndex removes the event at the given index from the events slice .
//Variables //Parametres //Function //Return