func()

in domain/products.go [37:48]


func (d *Products) AllProducts(ctx context.Context, next *string) (types.ProductRange, error) {
	if next != nil && strings.TrimSpace(*next) == "" {
		next = nil
	}

	productRange, err := d.store.All(ctx, next)
	if err != nil {
		return productRange, fmt.Errorf("%w", err)
	}

	return productRange, nil
}