Mercurial > gemma
comparison pkg/imports/gm.go @ 1776:6a902363b435
Fixed type typo.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 11 Jan 2019 12:11:46 +0100 |
parents | fcb0106ec510 |
children | 48791416bea5 |
comparison
equal
deleted
inserted
replaced
1775:fcb0106ec510 | 1776:6a902363b435 |
---|---|
267 var referenceCode string | 267 var referenceCode string |
268 if wrm.Reference_code == nil { | 268 if wrm.Reference_code == nil { |
269 feedback.Info("'Reference_code' not specified. Assuming 'ZPG'") | 269 feedback.Info("'Reference_code' not specified. Assuming 'ZPG'") |
270 referenceCode = "ZPG" | 270 referenceCode = "ZPG" |
271 } else { | 271 } else { |
272 referenceCode = *wrm.Reference_code | 272 referenceCode = string(*wrm.Reference_code) |
273 } | 273 } |
274 for _, measure := range wrm.Measure { | 274 for _, measure := range wrm.Measure { |
275 var unit string | 275 var unit string |
276 if measure.Unit == nil { | 276 if measure.Unit == nil { |
277 feedback.Info("'Unit' not specified. Assuming 'cm'") | 277 feedback.Info("'Unit' not specified. Assuming 'cm'") |