1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

MVP - New Branch

This commit is contained in:
Tim Fitzgerald 2018-07-23 12:49:25 -07:00
parent 2c0c7f2fdb
commit 829a2519bd
2 changed files with 15 additions and 7 deletions

14
zendesk/item.go Normal file
View File

@ -0,0 +1,14 @@
package zendesk
import (
"fmt"
"github.com/senorprogrammer/wtf/wtf"
)
type Item struct {
Requester string
TicketID string
Subject string
Status string
}

View File

@ -93,12 +93,6 @@ func newTickets() ([]string, error) {
newTickets = append(newTickets, newTicket) newTickets = append(newTickets, newTicket)
} }
} }
if len(newTickets) < 1 {
fmt.Println("No unassigned tickets in queue - woop!!")
} else {
for i := range newTickets {
fmt.Println(newTickets[i])
}
}
return newTickets, nil return newTickets, nil
} }