From 9fbd4ba1ff9600014093a8babeac4d9d810f9062 Mon Sep 17 00:00:00 2001 From: Jonathan Seth Mainguy Date: Fri, 28 Apr 2023 14:12:19 -0400 Subject: [PATCH] try sams formatting --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 56e91c6..cb008a6 100644 --- a/main.go +++ b/main.go @@ -3,9 +3,11 @@ package main import ( "fmt" "os" + "text/tabwriter" ) func main() { + w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0) subscribedRepos, envToken, err := getEnvVariables() if err != nil { fmt.Println(err) @@ -29,7 +31,10 @@ func main() { } for _, pr := range pullRequests { - fmt.Printf("%s: createdAt %s\n", pr.URL, pr.CreatedAt) + //fmt.Printf("%s: createdAt %s\n", pr.URL, pr.CreatedAt) + fmt.Fprintf(w, "%s:\tcreatedAt %s\n", pr.URL, pr.CreatedAt) } } + + w.Flush() }