MCPcopy
hub / github.com/genuinetools/img / newListValue

Function newListValue

cli.go:29–35  ·  view source on GitHub ↗

newListValue creates a new listValue with the specified validator.

()

Source from the content-addressed store, hash-verified

27
28// newListValue creates a new listValue with the specified validator.
29func newListValue() *listValue {
30 var values []string
31 return &listValue{
32 values: values,
33 validator: allowAnyValue,
34 }
35}
36
37func (opts *listValue) String() string {
38 if len(opts.values) == 0 {

Callers 3

newBuildCommandFunction · 0.85
newDiskUsageCommandFunction · 0.85
newListCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…