StringManipulation is an interface that holds all abstract methods to manipulate strings
| 20 | |
| 21 | // StringManipulation is an interface that holds all abstract methods to manipulate strings |
| 22 | type StringManipulation interface { |
| 23 | Acronym() StringManipulation |
| 24 | Between(start, end string) StringManipulation |
| 25 | Boolean() bool |
| 26 | PascalCase(rule ...string) StringManipulation |
| 27 | CamelCase(rule ...string) StringManipulation |
| 28 | ContainsAll(check ...string) bool |
| 29 | Delimited(delimiter string, rule ...string) StringManipulation |
| 30 | First(length int) string |
| 31 | Get() string |
| 32 | KebabCase(rule ...string) StringManipulation |
| 33 | Last(length int) string |
| 34 | LcFirst() string |
| 35 | Lines() []string |
| 36 | Pad(length int, with, padType string) string |
| 37 | RemoveSpecialCharacter() string |
| 38 | ReplaceFirst(search, replace string) string |
| 39 | ReplaceLast(search, replace string) string |
| 40 | Reverse() string |
| 41 | Shuffle() string |
| 42 | Surround(with string) string |
| 43 | SnakeCase(rule ...string) StringManipulation |
| 44 | Tease(length int, indicator string) string |
| 45 | Title() string |
| 46 | ToLower() string |
| 47 | ToUpper() string |
| 48 | UcFirst() string |
| 49 | Prefix(with string) string |
| 50 | Suffix(with string) string |
| 51 | } |
| 52 | |
| 53 | // New func returns pointer to input struct |
| 54 | func New(val string) StringManipulation { |
no outgoing calls
no test coverage detected
searching dependent graphs…