// NewCustomer instantiates a new Customer. func NewCustomer() *models.Customer { var customer models.Customer customer.ID = newID() return &customer }
// GetCustomer reads a Customer identified by id from database. func GetCustomer(id uuid.UUID) *models.Customer { customer := new(models.Customer) customer.Read(id) return customer }