From 5c78cbd3be7b782c1cc81825adf2a2595317a929 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 8 Apr 2023 14:40:57 +0200 Subject: pkg/platform: deprecate OSType in favor or runtime.GOOS This const looks to only be there for "convenience", or _possibly_ was created with future normalization or special handling in mind. In either case, currently it is just a direct copy (alias) for runtime.GOOS, and defining our own type for this gives the impression that it's more than that. It's only used in a single place, and there's no external consumers, so let's deprecate this const, and use runtime.GOOS instead. Signed-off-by: Sebastiaan van Stijn --- pkg/platform/platform.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg') diff --git a/pkg/platform/platform.go b/pkg/platform/platform.go index 78adc6fab0..8d90433b60 100644 --- a/pkg/platform/platform.go +++ b/pkg/platform/platform.go @@ -19,6 +19,8 @@ var Architecture string // OSType holds the runtime operating system type of the process. It is // an alias for [runtime.GOOS]. +// +// Deprecated: use [runtime.GOOS] instead. const OSType = runtime.GOOS func init() { -- cgit v1.2.1