KnowledgeBaseByName returns a configured KB by name.
(name string)
| 481 | |
| 482 | // KnowledgeBaseByName returns a configured KB by name. |
| 483 | func (c *Config) KnowledgeBaseByName(name string) (KnowledgeBaseConfig, bool) { |
| 484 | for _, kb := range c.KnowledgeBases { |
| 485 | if kb.Name == name { |
| 486 | return kb, true |
| 487 | } |
| 488 | } |
| 489 | return KnowledgeBaseConfig{}, false |
| 490 | } |
nothing calls this directly
no outgoing calls
no test coverage detected