StringWithoutTitle() implemented

This commit is contained in:
Timon Ringwald 2022-08-15 14:55:06 +02:00
parent 67e9015e42
commit 350681318c

View File

@ -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,
)
}