]> Cypherpunks repositories - gostls13.git/commitdiff
flag: replace interface{} -> any for textValue.Get method
authorJes Cok <xigua67damn@gmail.com>
Wed, 26 Feb 2025 16:31:46 +0000 (16:31 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 28 Feb 2025 16:43:46 +0000 (08:43 -0800)
Make it literally match the Getter interface.

Change-Id: I73f03780ba1d3fd2230e0e5e2343d40530d9e6d8
GitHub-Last-Rev: 398b90b2fb04fdd401a1d719bf3ce19152a4cf6a
GitHub-Pull-Request: golang/go#71975
Reviewed-on: https://go-review.googlesource.com/c/go/+/652795
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/flag/flag.go

index bda1e1a9b8d8fe8586515f8da5b1fa46402a8167..71902f7f5913e908665dd2c1ab66ea28bce1c36b 100644 (file)
@@ -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
 }