From dbce21cfa6a3d195ae3628bf4eaac6fdf7e41afd Mon Sep 17 00:00:00 2001 From: Artyom Belousov Date: Tue, 22 Sep 2020 11:10:01 +0300 Subject: [PATCH] Added max number for results --- cardsinfo/prices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cardsinfo/prices.go b/cardsinfo/prices.go index 02e5d8b..6abcb34 100644 --- a/cardsinfo/prices.go +++ b/cardsinfo/prices.go @@ -33,5 +33,5 @@ func GetPrices(name string) ([]CardPrice, error) { } prices = append(prices, cardPrice) } - return prices, nil + return prices[:5], nil }