1. Задача: Провести код-ревью и исправить ошибки в реализации сервиса на Go
package some_package
import (
"context"
)
type Storage interface {
Products(productsIds []int) (map[int]*ProductInfo, error)
Prices(ctx context.Context, productIds []int) (map[int]*ProductPrice, error)
}
// domain package
type ProductInfo struct {
ProductId int
CreatedAt uint8
}
type ProductPrice struct {
ProductId int
Price float64
}
type Product struct {
Id int
Info *ProductInfo
Price *ProductPrice
}
// transport package
type GetRequest struct {
Products []*Product
}
type Server struct {
storage Storage
}
func (s Server) Get(ctx context.Context, request GetRequest)…