ListAll returns the contents as a sorted string slice.
()
| 166 | |
| 167 | // ListAll returns the contents as a sorted string slice. |
| 168 | func (s String) List() []string { |
| 169 | res := make(sortableSliceOfString, 0, len(s)) |
| 170 | for key := range s { |
| 171 | res = append(res, key) |
| 172 | } |
| 173 | sort.Sort(res) |
| 174 | return []string(res) |
| 175 | } |
| 176 | |
| 177 | // UnsortedList returns the slice with contents in random order. |
| 178 | func (s String) UnsortedList() []string { |
nothing calls this directly
no outgoing calls
no test coverage detected