With the code generated from the setup below, I'm getting the following error:
models/survey_helper.go:48: tmp1.EndsAtToEndsAt undefined (type **time.Time has no field or method EndsAtToEndsAt)
models/survey_helper.go:52: tmp2.StartsAtToStartsAt undefined (type *time.Time has no field or method StartsAtToStartsAt)
Here's the relevant generated part from models/survey_helper.go:
// SurveyToSurvey loads a Survey and builds the default view of media type Survey.
func (m *Survey) SurveyToSurvey() *app.Survey {
survey := &app.Survey{}
tmp1 := &m.EndsAt
survey.EndsAt = tmp1.EndsAtToEndsAt() // %!s(MISSING)
survey.ID = m.ID
survey.Name = m.Name
tmp2 := &m.StartsAt
survey.StartsAt = tmp2.StartsAtToStartsAt() // %!s(MISSING)
survey.Status = m.Status
return survey
}
With the code generated from the setup below, I'm getting the following error:
Here's the relevant generated part from
models/survey_helper.go
:Setup
Any idea what might be wrong?