Lines returns slice of strings by removing white space characters
()
| 230 | |
| 231 | // Lines returns slice of strings by removing white space characters |
| 232 | func (i *input) Lines() []string { |
| 233 | input := getInput(*i) |
| 234 | result := matchWordRegexp.ReplaceAllString(input, " ") |
| 235 | return strings.Fields(strings.TrimSpace(result)) |
| 236 | } |
| 237 | |
| 238 | // Pad takes three param length i.e total length to be after padding, with i.e what to pad |
| 239 | // with and pad type which can be ("both" or "left" or "right") it return string after padding |
nothing calls this directly
no test coverage detected