(s string, n int)
| 193 | return "" |
| 194 | } |
| 195 | runes := []rune(s) |
| 196 | if len(runes) <= n { |
| 197 | return s |
| 198 | } |
| 199 | return string(runes[:n]) |
| 200 | } |
| 201 | |
| 202 | func lastChars(s string, n int) string { |
| 203 | if n <= 0 { |
| 204 | return "" |
| 205 | } |
| 206 | runes := []rune(s) |
| 207 | if len(runes) <= n { |
no outgoing calls
no test coverage detected