MCPcopy
hub / github.com/urfave/cli / NewMapValueSource

Function NewMapValueSource

value_source.go:236–241  ·  view source on GitHub ↗
(key string, ms MapSource)

Source from the content-addressed store, hash-verified

234}
235
236func NewMapValueSource(key string, ms MapSource) ValueSource {
237 return &mapValueSource{
238 key: key,
239 ms: ms,
240 }
241}
242
243func (mvs *mapValueSource) String() string {
244 return fmt.Sprintf("key %[1]q from %[2]s", mvs.key, mvs.ms.String())

Callers 2

TestMapValueSourceFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestMapValueSourceFunction · 0.68