ActiveProfile returns the selected profile. Bootstrap guarantees c.Active names a real one, so this is a straight map lookup.
()
| 329 | |
| 330 | // ActiveProfile returns the selected profile. Bootstrap guarantees c.Active |
| 331 | // names a real one, so this is a straight map lookup. |
| 332 | func (c *Config) ActiveProfile() *Profile { |
| 333 | return c.Models[c.Active] |
| 334 | } |
| 335 | |
| 336 | // ActiveURL is the endpoint every dial-out uses: the runtime override if set, |
no outgoing calls