mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 17:15:37 +00:00
12 lines
189 B
Go
12 lines
189 B
Go
package config
|
|
|
|
func (cfg *Config) FindAction(actionTitle string) *Action {
|
|
for _, action := range cfg.Actions {
|
|
if action.Title == actionTitle {
|
|
return &action
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|