Documentation ¶
Index ¶
- func Decrypt(b []byte) ([]byte, error)
- func DecryptDsn(dsn string) (string, error)
- func DeepSplit(ss []string, sep string) [][]string
- func DuplicateName(name string, add int) string
- func Encrypt(b []byte) string
- func EncryptDsn(dsn string) string
- func RandomRune() rune
- func RandomString(length int) string
- func SetDsnKey(key string)
- func Slice2to1(slice [][]string) []string
- func SliceContains(slice []string, s string) bool
- func SliceRepeat(elem string, l int) []string
- func SlicifyStr(seed string, length int) []string
- func SubAfter(s, sep, def string) string
- func SubAfterLast(s, sep, def string) string
- func SubBefore(s, sep, def string) string
- func SubBeforeLast(s, sep, def string) string
- func ToCamelCase(s string) string
- func ToDelimited(s string, delimiter uint8) string
- func ToKebab(s string) string
- func ToLowerCamel(s string) string
- func ToScreamingDelimited(s string, delimiter, ignore uint8, screaming bool) string
- func ToScreamingKebab(s string) string
- func ToScreamingSnake(s string) string
- func ToSnakeCase(s string) string
- func ToSnakeWithIgnore(s string, ignore uint8) string
- func TrimBoth(s, trim string) string
- func TrimEnd(s, trim string) string
- func TrimStart(s, trim string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptDsn ¶
func DuplicateName ¶
DuplicateName create 'name_1' for 'name', 'name_2' for 'name_1'
func EncryptDsn ¶
func RandomRune ¶
func RandomRune() rune
func RandomString ¶
func SliceContains ¶
func SliceRepeat ¶
func SlicifyStr ¶
func SubAfterLast ¶
func SubBeforeLast ¶
func ToDelimited ¶
ToDelimited converts a string to delimited.snake.case (in this case `delimiter = '.'`)
func ToLowerCamel ¶
ToLowerCamel converts a string to lowerCamelCase
func ToScreamingDelimited ¶
ToScreamingDelimited converts a string to SCREAMING.DELIMITED.SNAKE.CASE (in this case `delimiter = '.'; screaming = true`) or delimited.snake.case (in this case `delimiter = '.'; screaming = false`)
func ToScreamingKebab ¶
ToScreamingKebab converts a string to SCREAMING-KEBAB-CASE
func ToScreamingSnake ¶
ToScreamingSnake converts a string to SCREAMING_SNAKE_CASE
func ToSnakeWithIgnore ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.