From 6c78afd67d01c5e45204fd5bcadbbd740973074a Mon Sep 17 00:00:00 2001 From: Naveen Gogineni Date: Thu, 21 Nov 2024 18:27:06 -0500 Subject: [PATCH] Run make docs --- testdata/godoc-v3.x.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/testdata/godoc-v3.x.txt b/testdata/godoc-v3.x.txt index 406ec7c50b..3550ebe1f4 100644 --- a/testdata/godoc-v3.x.txt +++ b/testdata/godoc-v3.x.txt @@ -854,11 +854,19 @@ func (i MapBase[T, C, VC]) ToString(t map[string]T) string func (i *MapBase[T, C, VC]) Value() map[string]T Value returns the mapping of values set by this flag -type MapSource struct { - // Has unexported fields. +type MapSource interface { + fmt.Stringer + fmt.GoStringer + + // Lookup returns the value from the source based on key + // and if it was found + // or returns an empty string and false + Lookup(string) (any, bool) } + MapSource is a source which can be used to look up a value based on a key + typically for use with a cli.Flag -func NewMapSource(name string, m map[any]any) *MapSource +func NewMapSource(name string, m map[any]any) MapSource type MultiError interface { error @@ -1012,7 +1020,7 @@ func EnvVar(key string) ValueSource func File(path string) ValueSource -func NewMapValueSource(key string, ms *MapSource) ValueSource +func NewMapValueSource(key string, ms MapSource) ValueSource type ValueSourceChain struct { Chain []ValueSource