Tease takes two params length and indicator and it shortens given string on passed length and adds indicator on end it can be chained on function which return StringManipulation interface
(length int, indicator string)
| 345 | // on passed length and adds indicator on end |
| 346 | // it can be chained on function which return StringManipulation interface |
| 347 | func (i *input) Tease(length int, indicator string) string { |
| 348 | input := getInput(*i) |
| 349 | if input == "" || len(input) < length { |
| 350 | return input |
| 351 | } |
| 352 | return input[:length] + indicator |
| 353 | } |
| 354 | |
| 355 | // ToLower makes all string of user input to lowercase |
| 356 | // it can be chained on function which return StringManipulation interface |
nothing calls this directly
no test coverage detected