Fix missing symbol in tabwriter view
This commit is contained in:
parent
78f9468f0c
commit
5a21e5a3cf
3
main.go
3
main.go
|
@ -24,7 +24,6 @@ func main() {
|
||||||
if settings["interactive"] == "true" {
|
if settings["interactive"] == "true" {
|
||||||
interactiveShell()
|
interactiveShell()
|
||||||
}
|
}
|
||||||
fmt.Printf("I am done.\n")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseArguments() {
|
func parseArguments() {
|
||||||
|
@ -69,7 +68,7 @@ func printQueueEntries(queue parser.MailQ, writer io.Writer) {
|
||||||
tabWriter := tabwriter.NewWriter(writer, 2, 2, 1, ' ', tabwriter.TabIndent)
|
tabWriter := tabwriter.NewWriter(writer, 2, 2, 1, ' ', tabwriter.TabIndent)
|
||||||
fmt.Fprintf(tabWriter, "| %s\t| %s\t| %s\t| %s\t| %s\t| %s\t| %s\t| %s\t| \n", "Date", "Id", "Status", "Size", "Sender", "#", "First Recipient", "Reason")
|
fmt.Fprintf(tabWriter, "| %s\t| %s\t| %s\t| %s\t| %s\t| %s\t| %s\t| %s\t| \n", "Date", "Id", "Status", "Size", "Sender", "#", "First Recipient", "Reason")
|
||||||
for _, entry := range queue.Entries {
|
for _, entry := range queue.Entries {
|
||||||
_, writeError := fmt.Fprintf(tabWriter, "| %s\t| %s\t| %s\t| %d\t| %s\t| {%d}\t| %s\t| %s\t \n", entry.Date.Format(parser.SortableDateFormat), entry.Id, entry.Status, entry.Size, entry.Sender, len(entry.Recipients), entry.Recipients[0], entry.Reason)
|
_, writeError := fmt.Fprintf(tabWriter, "| %s\t| %s\t| %s\t| %d\t| %s\t| {%d}\t| %s\t| %s\t| \n", entry.Date.Format(parser.SortableDateFormat), entry.Id, entry.Status, entry.Size, entry.Sender, len(entry.Recipients), entry.Recipients[0], entry.Reason)
|
||||||
if writeError != nil {
|
if writeError != nil {
|
||||||
// A writeError is expected once the reader was closed
|
// A writeError is expected once the reader was closed
|
||||||
// This happens when the pager application got terminated
|
// This happens when the pager application got terminated
|
||||||
|
|
Loading…
Reference in New Issue