Added different formatting for telegram bot

This commit is contained in:
Artyom Belousov 2021-06-06 17:21:29 +03:00
parent 35f8fa5a57
commit 89623f5f6a
18 changed files with 233 additions and 173 deletions

View file

@ -1,18 +1,13 @@
package cardsinfo
import (
"fmt"
"strings"
)
type scgCardPrice struct {
price string
edition string
link string
}
func (s *scgCardPrice) format() string {
return fmt.Sprintf("%v: %v\n%v\n", s.edition, s.price, s.link)
type ScgCardPrice struct {
Price string
Edition string
Link string
}
type card struct {