Skip to content

Commit

Permalink
Run make docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dearchap committed Nov 21, 2024
1 parent 596e7c5 commit 6c78afd
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions testdata/godoc-v3.x.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6c78afd

Please sign in to comment.