# HG changeset patch # User Sascha L. Teichmann # Date 1543162544 -3600 # Node ID 447db2bce052f8da02c21043ccdd001477e0dd1c # Parent 275ead19b9fd001674ee0c2a117ca43d953ad67f Renamed BottleneckId to BottleneckID to make golint happy. diff -r 275ead19b9fd -r 447db2bce052 pkg/controllers/surveys.go --- 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 diff -r 275ead19b9fd -r 447db2bce052 pkg/models/surveys.go --- 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"` } )