EventTypeDescription returns the description of the named event type, or an empty string if it is unknown.
(name string)
| 22 | |
| 23 | // EventTypeDescription returns the description of the named event type, or an empty string if it is unknown. |
| 24 | func EventTypeDescription(name string) string { |
| 25 | for _, t := range EventTypes { |
| 26 | if t.Name == name { |
| 27 | return t.Description |
| 28 | } |
| 29 | } |
| 30 | return "" |
| 31 | } |
| 32 | |
| 33 | // EventTypesHelp returns the supported event types as a Markdown list for command help, without a trailing newline. |
| 34 | func EventTypesHelp() string { |