From e5d6f4c02b757c83244ba5e04fead08623a27299 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sat, 14 Mar 2026 00:44:19 +0300 Subject: =?UTF-8?q?=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/model/item.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 internal/model/item.go (limited to 'internal/model') diff --git a/internal/model/item.go b/internal/model/item.go new file mode 100644 index 0000000..c18d830 --- /dev/null +++ b/internal/model/item.go @@ -0,0 +1,24 @@ +package model + +import ( + "fmt" + "time" +) + +type Item struct { + ID string + Date time.Time + Title string + Summary string + Link string + Img string +} + +func (it *Item) BuildMessage() string { + return fmt.Sprintf( + `%s

%s
Читать дальше: %[3]s`, + it.Title, + it.Summary, + it.Link, + ) +} -- cgit v1.2.3