str

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyString = ""

Variables

This section is empty.

Functions

func Convert added in v0.5.4

func Convert(src string, kind reflect.Kind) (retVal interface{})

func InSlice

func InSlice(a string, list []string) bool

StringInSlice check if specific string is in slice

func LowerFirst

func LowerFirst(str string) string

LowerFirst lower case first character of specific string

func ToCamel added in v0.4.0

func ToCamel(s string) string

Converts a string to CamelCase

func ToDelimited added in v0.4.0

func ToDelimited(s string, del uint8) string

ToDelimited Converts a string to delimited.snake.case (in this case `del = '.'`)

func ToKebab added in v0.4.0

func ToKebab(s string) string

ToKebab Converts a string to kebab-case

func ToLowerCamel added in v0.4.0

func ToLowerCamel(s string) string

Converts a string to lowerCamelCase

func ToScreamingDelimited added in v0.4.0

func ToScreamingDelimited(s string, del uint8, screaming bool) string

ToScreamingDelimited Converts a string to SCREAMING.DELIMITED.SNAKE.CASE (in this case `del = '.'; screaming = true`) or delimited.snake.case (in this case `del = '.'; screaming = false`)

func ToScreamingKebab added in v0.4.0

func ToScreamingKebab(s string) string

ToScreamingKebab Converts a string to SCREAMING-KEBAB-CASE

func ToScreamingSnake added in v0.4.0

func ToScreamingSnake(s string) string

ToScreamingSnake Converts a string to SCREAMING_SNAKE_CASE

func ToSnake added in v0.4.0

func ToSnake(s string) string

ToSnake Converts a string to snake_case

func UpperFirst

func UpperFirst(str string) string

UpperFirst upper case first character of specific string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL