SortedNames returns the endpoint names sorted for deterministic output.
()
| 41 | |
| 42 | // SortedNames returns the endpoint names sorted for deterministic output. |
| 43 | func (f File) SortedNames() []string { |
| 44 | names := make([]string, 0, len(f.Endpoints)) |
| 45 | for name := range f.Endpoints { |
| 46 | names = append(names, name) |
| 47 | } |
| 48 | sort.Strings(names) |
| 49 | return names |
| 50 | } |
| 51 | |
| 52 | // IsEnabled reports whether the endpoint participates in tool launches. A nil |
| 53 | // Enabled field is treated as "true" to match Python. |
no outgoing calls