From 7fc559153eb37ad9e32cef37e917526cfb3c0de3 Mon Sep 17 00:00:00 2001
From: Douglas Chimento <dchimento@ygmail.com>
Date: Sun, 29 May 2016 15:10:19 -0400
Subject: [PATCH] using native time.Time

---
 issue.go | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/issue.go b/issue.go
index f067f34..0f52700 100644
--- a/issue.go
+++ b/issue.go
@@ -185,16 +185,16 @@ type Worklog struct {
 	Author           *Assignee `json:"author"`
 }
 
-type JiraTime struct {
-	Time time.Time
-}
+type JiraTime time.Time
+
+type CustomFields map[string]string
 
 func (t *JiraTime) UnmarshalJSON(b []byte) error {
 	ti, err := time.Parse("\"2006-01-02T15:04:05.999-0700\"", string(b))
 	if err != nil {
 		return err
 	}
-	*t = JiraTime{ti}
+	*t = JiraTime(ti)
 	return nil
 }
 
@@ -275,7 +275,6 @@ func (s *IssueService) Get(issueID string) (*Issue, *http.Response, error) {
 	return issue, resp, nil
 }
 
-type CustomFields map[string]string
 
 // Returns a map of customfield_* keys with string values
 func (s *IssueService) GetCustomFields(issueID string) (CustomFields, *http.Response, error) {