appendRepeat repeats string "n" times and appends to buf.
(buf []byte, s string, n int)
| 177 | |
| 178 | // appendRepeat repeats string "n" times and appends to buf. |
| 179 | func appendRepeat(buf []byte, s string, n int) []byte { |
| 180 | for i := 0; i < n; i++ { |
| 181 | buf = append(buf, s...) |
| 182 | } |
| 183 | return buf |
| 184 | } |
| 185 | |
| 186 | // trim does a rip trim |
| 187 | func trim(s string) string { |
no outgoing calls
no test coverage detected
searching dependent graphs…