Add time and URL to search output.

This commit is contained in:
Elen Eisendle 2019-08-13 14:42:34 +02:00
parent 8adb027f55
commit 3712bcbb28
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ func search(token string) error {
for _, s := range statuses {
if strings.Contains(strings.ToLower(cleanupContent(s.Content)), token) {
fmt.Println("\nFound toot:", cleanupContent(s.Content))
fmt.Println("Date: ", s.CreatedAt, ", URL: ", s.URL)
fmt.Println()
}