Added dict with additional cards
This commit is contained in:
parent
181f3bc0aa
commit
88ea431a27
26 changed files with 232 additions and 35 deletions
|
|
@ -1,14 +0,0 @@
|
|||
package cardsinfo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func FormatCardPrices(name string, prices []CardPrice) string {
|
||||
message := fmt.Sprintf("Оригинальное название: %v\n", name)
|
||||
message += fmt.Sprintf("Результатов: %v\n", len(prices))
|
||||
for i, v := range prices {
|
||||
message += fmt.Sprintf("%v. %v", i + 1, v.Format())
|
||||
}
|
||||
return message
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue