RegisteredNames returns the sorted names of all registered sources.
()
| 28 | |
| 29 | // RegisteredNames returns the sorted names of all registered sources. |
| 30 | func RegisteredNames() []string { |
| 31 | names := make([]string, 0, len(sources)) |
| 32 | for n := range sources { |
| 33 | names = append(names, n) |
| 34 | } |
| 35 | sort.Strings(names) |
| 36 | return names |
| 37 | } |