Mercurial > gemma
comparison pkg/controllers/printtemplates.go @ 3089:813309225e35
Made 'go vet' happy again.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 21 Apr 2019 19:02:35 +0200 |
parents | 1c8b8a4476af |
children | 4c254651d80b |
comparison
equal
deleted
inserted
replaced
3088:09d1ffce3d00 | 3089:813309225e35 |
---|---|
85 var w time.Time | 85 var w time.Time |
86 var country sql.NullString | 86 var country sql.NullString |
87 if err = rows.Scan(&tmpl.Name, &w, &country); err != nil { | 87 if err = rows.Scan(&tmpl.Name, &w, &country); err != nil { |
88 return | 88 return |
89 } | 89 } |
90 tmpl.Time = models.Time{w} | 90 tmpl.Time = models.Time{Time: w} |
91 if country.Valid { | 91 if country.Valid { |
92 tmpl.Country = &country.String | 92 tmpl.Country = &country.String |
93 } | 93 } |
94 templates = append(templates, &tmpl) | 94 templates = append(templates, &tmpl) |
95 } | 95 } |