getValidReactions returns the list of valid reaction entries
()
| 29 | |
| 30 | // getValidReactions returns the list of valid reaction entries |
| 31 | func getValidReactions() []string { |
| 32 | reactions := make([]string, 0, len(validReactions)) |
| 33 | for reaction := range validReactions { |
| 34 | reactions = append(reactions, reaction) |
| 35 | } |
| 36 | return reactions |
| 37 | } |
| 38 | |
| 39 | // parseReactionValue converts a reaction value from YAML to a string. |
| 40 | // YAML parsers may return +1 and -1 as integers, so this function handles |
no outgoing calls