Documentation ¶
Index ¶
- func ToCamelCase(s string) string
- func ToDelimited(s string, del uint8) string
- func ToKebab(s string) string
- func ToLowerCamelCase(s string) string
- func ToScreamingDelimited(s string, del uint8, screaming bool) (n string)
- func ToScreamingKebab(s string) string
- func ToScreamingSnakeCase(s string) string
- func ToSnakeCase(s string) string
- func UnsafeSlice(s string) (p []byte)
- func UnsafeString(p []byte) (s string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToDelimited ¶
ToDelimited converts a s to delimited.snake.case (in this case `del = '.'`).
func ToLowerCamelCase ¶
ToLowerCamelCase converts a s to lower CamelCase.
func ToScreamingDelimited ¶
ToScreamingDelimited converts a s to SCREAMING.DELIMITED.SNAKE.CASE in this case `del = '.'; screaming = true`) or delimited.snake.case (in this case `del = '.'; screaming = false`.
func ToScreamingKebab ¶
ToScreamingKebab converts a s to SCREAMING-KEBAB-CASE.
func ToScreamingSnakeCase ¶
ToScreamingSnakeCase converts a s to SCREAMING_SNAKE_CASE.
func UnsafeSlice ¶
UnsafeSlice returns a byte array that points to the given string without a heap allocation. The string must be preserved until the byte arrayis disposed.
func UnsafeString ¶
UnsafeString returns a string that points to the given byte array without a heap allocation. The byte array must be preserved until the string is disposed.
Types ¶
This section is empty.