func NewDelegateAggregateFactory() *DelegateAggregateFactory {
	return &DelegateAggregateFactory{
		delegates: make(map[string]func(string) AggregateRoot),
	}
}
NewDelegateAggregateFactory contructs a new DelegateAggregateFactory
package ycq
import (
	"fmt"
)
type AggregateFactory interface {
	GetAggregate(string, string) AggregateRoot
}
type DelegateAggregateFactory struct {
	delegates map[string]func(string) AggregateRoot
}