mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-25 20:06:37 +00:00
chore: update Go version to 1.26.0 (#2342)
This commit is contained in:
2
go.mod
2
go.mod
@@ -1,6 +1,6 @@
|
||||
module github.com/prometheus-community/windows_exporter
|
||||
|
||||
go 1.25.0
|
||||
go 1.26.0
|
||||
|
||||
require (
|
||||
github.com/alecthomas/kingpin/v2 v2.4.0
|
||||
|
||||
@@ -33,10 +33,6 @@ func BoolToFloat(b bool) float64 {
|
||||
return 0.0
|
||||
}
|
||||
|
||||
func ToPTR[t any](v t) *t {
|
||||
return &v
|
||||
}
|
||||
|
||||
func PercentageToRatio(percentage float64) float64 {
|
||||
return percentage / 100
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user