2020-04-05 16:10:08 +03:00
|
|
|
package stringy
|
2020-04-03 06:36:09 +03:00
|
|
|
|
2020-04-05 16:10:08 +03:00
|
|
|
// const below are used in packages
|
2020-04-03 06:36:09 +03:00
|
|
|
const (
|
2020-04-07 07:57:58 +03:00
|
|
|
First = "first"
|
|
|
|
Last = "last"
|
|
|
|
Left = "left"
|
|
|
|
Right = "right"
|
|
|
|
Both = "both"
|
|
|
|
OddError = "odd number rule provided please provide in even count"
|
|
|
|
SelectCapital = "([a-z])([A-Z])"
|
|
|
|
ReplaceCapital = "$1 $2"
|
|
|
|
LengthError = "passed length cannot be greater than input length"
|
|
|
|
InvalidLogicalString = "invalid string value to test boolean value"
|
2020-04-05 12:11:56 +03:00
|
|
|
)
|
2020-04-05 14:02:47 +03:00
|
|
|
|
2020-04-05 16:10:08 +03:00
|
|
|
// False is slice of array for false logical representation in string
|
2020-04-05 14:02:47 +03:00
|
|
|
var False = []string{"off", "no", "0", "false"}
|
2020-04-05 16:10:08 +03:00
|
|
|
|
|
|
|
// True is slice of array for true logical representation in string
|
2022-05-02 04:52:35 +03:00
|
|
|
var True = []string{"on", "yes", "1", "true"}
|