IconText prefixes text with icon when icon display is enabled.
(icon, text string, showIcons bool)
| 3 | |
| 4 | // IconText prefixes text with icon when icon display is enabled. |
| 5 | func IconText(icon, text string, showIcons bool) string { |
| 6 | if !showIcons || icon == "" { |
| 7 | return text |
| 8 | } |
| 9 | return icon + " " + text |
| 10 | } |
no outgoing calls