func getProduct()

in products.go [58:64]


func getProduct(ctx context.Context, db *sqlx.DB, id int) (*Product, error) {
	products, err := queryProducts(ctx, db, &id)
	if err != nil || len(products) == 0 {
		return nil, err
	}
	return &products[0], nil
}