Humanize returns the addon name in a human-readable format.
()
| 155 | |
| 156 | // Humanize returns the addon name in a human-readable format. |
| 157 | func (a Addon) Humanize() string { |
| 158 | switch a { |
| 159 | case AddonAIGovernance: |
| 160 | return "AI Governance" |
| 161 | default: |
| 162 | return strings.Title(strings.ReplaceAll(string(a), "_", " ")) |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | // FeatureName represents the internal name of a feature. |
| 167 | // To add a new feature, add it to this set of enums as well as the FeatureNames |
no outgoing calls