You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: memory.go
    path of file: ./repos/merlin/pkg/listeners/udp/memory
    
    the code of the file until where you have to start completion: /*
Merlin is a post-exploitation command and control framework.

This file is part of Merlin.
Copyright (C) 2023 Russel Van Tuyl

Merlin is free softwar
    
func (r *Repository) RemoveByID(id uuid.UUID) error {
	if l, ok := r.listeners[id]; ok {
		/*
			err := l.Stop()
			if err != nil {
				return err
			}
		*/
		delete(r.listeners, l.ID())
		return nil
	}
	return fmt.Errorf("could not remove listener: %s because it does not exist", id)
}