chore: use Go 1.24 (#17656)

This commit is contained in:
andig 2025-02-12 09:49:31 +01:00 • committed by GitHub
parent 3020e1a03a
commit 91ad41d2c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
76 changed files with 91 additions and 118 deletions

View file

@ -7,7 +7,7 @@ import (
"time"
)
//go:generate mockgen -package api -destination mock.go github.com/evcc-io/evcc/api Charger,ChargeState,CurrentLimiter,CurrentGetter,PhaseSwitcher,PhaseGetter,Identifier,Meter,MeterEnergy,PhaseCurrents,Vehicle,ChargeRater,Battery,Tariff,BatteryController,Circuit
//go:generate go tool mockgen -package api -destination mock.go github.com/evcc-io/evcc/api Charger,ChargeState,CurrentLimiter,CurrentGetter,PhaseSwitcher,PhaseGetter,Identifier,Meter,MeterEnergy,PhaseCurrents,Vehicle,ChargeRater,Battery,Tariff,BatteryController,Circuit
// Meter provides total active power in W
type Meter interface {

View file

@ -3,7 +3,7 @@ package api
// BatteryMode is the home battery operation mode. Valid values are normal, locked and charge
type BatteryMode int
//go:generate enumer -type BatteryMode -trimprefix Battery -transform=lower
//go:generate go tool enumer -type BatteryMode -trimprefix Battery -transform=lower
const (
BatteryUnknown BatteryMode = iota
BatteryNormal

View file

@ -2,7 +2,7 @@ package api
type Feature int
//go:generate enumer -type Feature -text
//go:generate go tool enumer -type Feature -text
const (
_ Feature = iota
Offline

View file

@ -2,7 +2,7 @@ package api
type Reason int
//go:generate enumer -type Reason -trimprefix Reason -transform=lower
//go:generate go tool enumer -type Reason -trimprefix Reason -transform=lower
const (
ReasonUnknown Reason = iota
ReasonWaitingForAuthorization

View file

@ -1,7 +1,7 @@
package api
//go:generate enumer -type TariffType -trimprefix TariffType -transform=lower -text
//go:generate enumer -type TariffUsage -trimprefix TariffUsage -transform=lower
//go:generate go tool enumer -type TariffType -trimprefix TariffType -transform=lower -text
//go:generate go tool enumer -type TariffUsage -trimprefix TariffUsage -transform=lower
type TariffType int