Mercurial > gemma
comparison pkg/controllers/surveys.go @ 1332:447db2bce052
Renamed BottleneckId to BottleneckID to make golint happy.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 25 Nov 2018 17:15:44 +0100 |
parents | 5443f5c9154c |
children | 056a86b24be2 |
comparison
equal
deleted
inserted
replaced
1331:275ead19b9fd | 1332:447db2bce052 |
---|---|
48 surveys := []models.Survey{} | 48 surveys := []models.Survey{} |
49 | 49 |
50 for rows.Next() { | 50 for rows.Next() { |
51 var survey models.Survey | 51 var survey models.Survey |
52 if err = rows.Scan( | 52 if err = rows.Scan( |
53 &survey.BottleneckId, | 53 &survey.BottleneckID, |
54 &survey.DateInfo, | 54 &survey.DateInfo, |
55 ); err != nil { | 55 ); err != nil { |
56 return | 56 return |
57 } | 57 } |
58 surveys = append(surveys, survey) | 58 surveys = append(surveys, survey) |