(condition bool, first T, second T)
| 34 | } |
| 35 | |
| 36 | func If[T any](condition bool, first T, second T) T { |
| 37 | if condition { |
| 38 | return first |
| 39 | } |
| 40 | return second |
| 41 | } |
| 42 | |
| 43 | func UpperFirst(text string) string { |
| 44 | return strings.ToUpper(text[:1]) + strings.ToLower(text[1:]) |
no outgoing calls