diff options
| author | Jes Cok <xigua67damn@gmail.com> | 2025-02-26 16:31:46 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-02-28 08:43:46 -0800 |
| commit | b3e36364b94fe25497a288eee12fa3c96f4101a3 (patch) | |
| tree | c92807fabb9ed1d13fd7b4ddba0800b246a9652b /src/flag | |
| parent | d31c805535f3fde95646ee4d87636aaaea66847b (diff) | |
| download | go-b3e36364b94fe25497a288eee12fa3c96f4101a3.tar.xz | |
flag: replace interface{} -> any for textValue.Get method
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>
Diffstat (limited to 'src/flag')
| -rw-r--r-- | src/flag/flag.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
