text table, telegram html message

This commit is contained in:
2025-11-28 15:43:07 +03:00
parent 68310ac711
commit 5727c7a60c
6 changed files with 179 additions and 4 deletions

20
tools_test.go Normal file
View File

@@ -0,0 +1,20 @@
package notify_test
import (
"log"
"testing"
"git.gm6.ru/icewind/notify"
)
func TestCreateTable(t *testing.T) {
rows := [][]string{
{"Название", "Цена", "Кол-во", "Рост"},
{"Яблоки", "120", "5", "3.5"},
{"Бананы", "-90", "30", "12 000"},
{"Киви", "+200", "1", "-1.2"},
}
msg := notify.BuildTelegramHTMLTable(rows)
log.Println(msg)
}