ActiveURL is the endpoint every dial-out uses: the runtime override if set, else the active profile's URL. Use this over ActiveProfile().URL so CODEHAMR_URL doesn't leak back into Save.
()
| 336 | // else the active profile's URL. Use this over ActiveProfile().URL so |
| 337 | // CODEHAMR_URL doesn't leak back into Save. |
| 338 | func (c *Config) ActiveURL() string { |
| 339 | if c.URLOverride != "" { |
| 340 | return c.URLOverride |
| 341 | } |
| 342 | return c.ActiveProfile().URL |
| 343 | } |
| 344 | |
| 345 | // ModelNames returns the profile names sorted, so the popover cycles |
| 346 | // deterministically regardless of map iteration order. |