StrRemove removes the rune from the specified string and position
(s string, col int)
| 39 | |
| 40 | // StrRemove removes the rune from the specified string and position |
| 41 | func StrRemove(s string, col int) string { |
| 42 | |
| 43 | start, length := StrFind(s, col) |
| 44 | return s[:start] + s[start+length:] |
| 45 | } |
| 46 | |
| 47 | // StrInsert inserts a string at the specified character position |
| 48 | func StrInsert(s, data string, col int) string { |
no test coverage detected