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 }