From 75d090c0df9f7baa3f1c7ddbf3105c53144a3efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Fri, 20 Mar 2026 00:56:39 +0100 Subject: [PATCH] chore: update Go version to 1.26.0 (#2342) --- go.mod | 2 +- internal/utils/utils.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 1ec2ed78..32ca0317 100644 --- a/go.mod +++ b/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 diff --git a/internal/utils/utils.go b/internal/utils/utils.go index aad1a783..92460db4 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -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 }