(r rune)
| 8 | ) |
| 9 | |
| 10 | func squeeze(r rune) rune { |
| 11 | switch r { |
| 12 | case '\n', '\t': |
| 13 | return -1 |
| 14 | default: |
| 15 | return r |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func shortenQuery(q string) string { |
| 20 | return strings.Map(squeeze, q) |
nothing calls this directly
no outgoing calls
no test coverage detected