MCPcopy Create free account
hub / github.com/docker/cli / GetMap

Method GetMap

opts/opts.go:81–87  ·  view source on GitHub ↗

GetMap returns the content of values in a map in order to avoid duplicates.

()

Source from the content-addressed store, hash-verified

79// GetMap returns the content of values in a map in order to avoid
80// duplicates.
81func (opts *ListOpts) GetMap() map[string]struct{} {
82 ret := make(map[string]struct{})
83 for _, k := range *opts.values {
84 ret[k] = struct{}{}
85 }
86 return ret
87}
88
89// GetSlice returns the values of slice.
90//

Callers 2

parseFunction · 0.80

Calls

no outgoing calls

Tested by 1