From 398b90b2fb04fdd401a1d719bf3ce19152a4cf6a Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Wed, 26 Feb 2025 23:48:31 +0800 Subject: [PATCH] flag: replace interface{} -> any for textValue.Get method Make it literally match the Getter interface. --- src/flag/flag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flag/flag.go b/src/flag/flag.go index bda1e1a9b8..71902f7f59 100644 --- a/src/flag/flag.go +++ b/src/flag/flag.go @@ -318,7 +318,7 @@ func (v textValue) Set(s string) error { return v.p.UnmarshalText([]byte(s)) } -func (v textValue) Get() interface{} { +func (v textValue) Get() any { return v.p }