StringWithoutTitle() implemented
This commit is contained in:
parent
67e9015e42
commit
350681318c
11
torrent.go
11
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,
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user