coal/catalog.go
func NewCatalog(models ...Model) *Catalog {
	// create catalog
	c := &Catalog{
		models: make(map[string]Model),
	}

	// add models
	c.Add(models...)

	return c
}
func NewCatalog(models ...Model) *Catalog {
	// create catalog
	c := &Catalog{
		models: make(map[string]Model),
	}

	// add models
	c.Add(models...)

	return c
}
// NewCatalog will create a new catalog.