使用https://github.com/andygrunwald/go-jira時:問題 - 解決日期定義為struct { ... Resolutiondate Time `json:"resolutiondate,omitempty" structs:"resolutiondate,omitempty"` ...}和type Time time.Time嘗試訪問使用 github.com/spf13/castvar resDate time.TimeresDate, err = cast.ToTimeE(issue.Fields.Resolutiondate)我得到:err = "unable to cast jira.Time{wall:0x0, ext:63694019156, loc:(*time.Location)(0xe10a80)} of type jira.Time to Time"或者在嘗試施放時,我遇到施放違規resDate = issue.Fields.Resolutiondate.(time.Time)(試圖將 Resolutiondate 的類型更改為 time.Time,但得到一個 html 響應轉換錯誤...)
- 1 回答
- 0 關注
- 105 瀏覽
添加回答
舉報
0/150
提交
取消
