ClientByName returns the spec for a client name, or false when unsupported.
(name string)
| 54 | |
| 55 | // ClientByName returns the spec for a client name, or false when unsupported. |
| 56 | func ClientByName(name string) (ClientSpec, bool) { |
| 57 | for _, c := range SupportedClients { |
| 58 | if c.Name == name { |
| 59 | return c, true |
| 60 | } |
| 61 | } |
| 62 | return ClientSpec{}, false |
| 63 | } |
| 64 | |
| 65 | // ClientNames returns the supported client names in alphabetical order. |
| 66 | func ClientNames() []string { |
no outgoing calls