(s string, n int)
| 182 | return s |
| 183 | } |
| 184 | return "" |
| 185 | } |
| 186 | |
| 187 | func charLen(s string) int { |
| 188 | return len([]rune(s)) |
| 189 | } |
| 190 | |
| 191 | func firstChars(s string, n int) string { |
| 192 | if n <= 0 { |
| 193 | return "" |
| 194 | } |
| 195 | runes := []rune(s) |
| 196 | if len(runes) <= n { |
no outgoing calls
no test coverage detected