fix: golangci-lint and gosec warnings
This commit is contained in:
@ -9,7 +9,7 @@ import (
|
||||
// or temperature.
|
||||
type MeasuredValue struct {
|
||||
ID string `json:"id" xml:"id"`
|
||||
Value float64 `json:"value,string" xml:"value,string"`
|
||||
Value float64 `json:"value,string" xml:"value"`
|
||||
ValueType MeasuredValueType `json:"value_type" xml:"value_type"`
|
||||
Date time.Time `json:"date" xml:"date"`
|
||||
SensorID string `json:"sensor_id" xml:"sensor_id"`
|
||||
@ -21,6 +21,6 @@ type MeasuredValueType string
|
||||
|
||||
const (
|
||||
Humidity MeasuredValueType = "humidity"
|
||||
Pressure = "pressure"
|
||||
Temperature = "temperature"
|
||||
Pressure MeasuredValueType = "pressure"
|
||||
Temperature MeasuredValueType = "temperature"
|
||||
)
|
||||
|
Reference in New Issue
Block a user