stringy/message.go

22 lines
752 B
Go
Raw Permalink Normal View History

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 (
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
2020-04-05 14:02:47 +03:00
var True = []string{"on", "yes", "1", "True"}