From ddeebf17ce8019d462767209717374d590bbb4e7 Mon Sep 17 00:00:00 2001 From: perp Date: Wed, 2 Aug 2023 05:08:29 +0100 Subject: [PATCH] :lipstick: Changed rendering Changed table rendering spacing. --- internal/shodan/alert/list.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/shodan/alert/list.go b/internal/shodan/alert/list.go index f370778..b993255 100644 --- a/internal/shodan/alert/list.go +++ b/internal/shodan/alert/list.go @@ -18,14 +18,14 @@ func List() { } // Print results - utils.Title.Println("Alert ID\t\tName\t\t\tIP/Network") + utils.Title.Printf("%s%13s%28s\n", "Alert ID", "Name", "IP/Network") for index := range results { fmt.Printf( - "%s\t%s\t%s\n", + "%-14s %-24s %24s\n", utils.Green(results[index].ID), utils.Blue(results[index].Name), - utils.Blue(strings.Join(results[index].Filters.IP, ",")), + utils.Green(strings.Join(results[index].Filters.IP, ",")), ) } }