GetMap returns the content of values in a map in order to avoid duplicates.
()
| 79 | // GetMap returns the content of values in a map in order to avoid |
| 80 | // duplicates. |
| 81 | func (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 | // |
no outgoing calls