changeset 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 275ead19b9fd
children 8c6b5d47a7ff
files pkg/controllers/surveys.go pkg/models/surveys.go
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/surveys.go	Sun Nov 25 17:12:35 2018 +0100
+++ b/pkg/controllers/surveys.go	Sun Nov 25 17:15:44 2018 +0100
@@ -50,7 +50,7 @@
 	for rows.Next() {
 		var survey models.Survey
 		if err = rows.Scan(
-			&survey.BottleneckId,
+			&survey.BottleneckID,
 			&survey.DateInfo,
 		); err != nil {
 			return
--- a/pkg/models/surveys.go	Sun Nov 25 17:12:35 2018 +0100
+++ b/pkg/models/surveys.go	Sun Nov 25 17:15:44 2018 +0100
@@ -15,7 +15,7 @@
 
 type (
 	Survey struct {
-		BottleneckId string `json:"bottleneck_id"`
+		BottleneckID string `json:"bottleneck_id"`
 		DateInfo     string `json:"date_info"`
 	}
 )