(s string, max int)
| 1135 | } |
| 1136 | |
| 1137 | func printTruncated(s string, max int) { |
| 1138 | if len(s) > max { |
| 1139 | fmt.Printf(" %s...\n", s[:max]) |
| 1140 | } else { |
| 1141 | fmt.Printf(" %s\n", s) |
| 1142 | } |
| 1143 | } |
| 1144 | |
| 1145 | func truncate(s string, max int) string { |
| 1146 | if len(s) > max { |
no outgoing calls
no test coverage detected