mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
MVP - New Branch
This commit is contained in:
parent
2c0c7f2fdb
commit
829a2519bd
14
zendesk/item.go
Normal file
14
zendesk/item.go
Normal 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
|
||||
}
|
@ -93,12 +93,6 @@ func newTickets() ([]string, error) {
|
||||
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user