Modify output formats

This commit is contained in:
Miguel de la Cruz 2020-09-24 14:16:51 +02:00
parent 82dc46f787
commit e2597d9791
2 changed files with 11 additions and 6 deletions

View file

@ -20,8 +20,9 @@ func (c *Campaign) PrintUserReport() {
}
fmt.Println("User report:\n")
w := tabwriter.NewWriter(os.Stdout, 3, 0, 3, ' ', tabwriter.AlignRight)
w := tabwriter.NewWriter(os.Stdout, 0, 0, 3, ' ', tabwriter.AlignRight)
fmt.Fprintln(w, "GitHub username\tTickets closed\t")
fmt.Fprintln(w, "---------------\t--------------\t")
for user, count := range userTickets {
fmt.Fprintf(w, "%s\t%d\t\n", user, count)
}