使用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 关注
- 107 浏览
添加回答
举报
0/150
提交
取消
