From 6b22fe134a84cd1095a1bf1021a2e8c7c7c018fe Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 13 Jan 2025 17:47:55 +0000 Subject: [PATCH] Add default formatter events handler --- handlers/event/event.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/handlers/event/event.go b/handlers/event/event.go index 86b31aa..f068f67 100644 --- a/handlers/event/event.go +++ b/handlers/event/event.go @@ -1,6 +1,8 @@ package event import ( + "fmt" + "git.grassecon.net/grassrootseconomics/sarafu-api/remote" ) @@ -12,5 +14,8 @@ type EventsHandler struct { func NewEventsHandler(api remote.AccountService) *EventsHandler { return &EventsHandler{ api: api, + formatFunc: func(tag string, i int, o any) string { + return fmt.Sprintf("%d %v", i, o) + }, } }