From 350681318c43c59f7fb337b895c38ca7df48d70f Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Mon, 15 Aug 2022 14:55:06 +0200 Subject: [PATCH] StringWithoutTitle() implemented --- torrent.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/torrent.go b/torrent.go index fb0b586..dbc681d 100644 --- a/torrent.go +++ b/torrent.go @@ -29,3 +29,14 @@ func (t Torrent) String() string { t.Time, ) } + +func (t Torrent) StringWithoutTitle() string { + return fmt.Sprintf("id: %s | seeders: %d | leechers: %d | downloads: %d | trusted: %t | upload time: %s", + t.ID, + t.Seeders, + t.Leechers, + t.Downloads, + t.Trusted, + t.Time, + ) +}