text

package
v1.125.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendStrAsNewParagraph

func AppendStrAsNewParagraph(base, str string) string

func AsSnakeCase

func AsSnakeCase(s string) string

AsSnakeCase returns the given string converted to lowercase snake_case. If the input is already snake_case, no change is made. Any transitions in the input from lowercase to uppercase are interpreted as camelCase-style word transitions, and are replaced with an underscore.

func BeginsWithVowel

func BeginsWithVowel(s string) bool

func CamelCaseToKebabCase

func CamelCaseToKebabCase(s string) string

Convert a CamelCaseString to kebab-case-string.

func IndefiniteArticleFor

func IndefiniteArticleFor(s string) string

func IsPascalCase added in v1.98.0

func IsPascalCase(s string) bool

func IsSnakeCase added in v1.103.0

func IsSnakeCase(s string) bool

func KebabCaseToLowerSnakeCase

func KebabCaseToLowerSnakeCase(s string) string

Convert a kebab-case-string to lower_snake_case string.

func LowercaseInitial

func LowercaseInitial(str string) string

func Pluralize

func Pluralize(singular string) string

TODO: there must be some package out there that does this well

func RemoveSpecialCharacters added in v1.101.0

func RemoveSpecialCharacters(s string) string

func SnakeCaseStrsToLowerCamelCaseStrs

func SnakeCaseStrsToLowerCamelCaseStrs(strs []string) []string

func SnakeCaseToKebabCase

func SnakeCaseToKebabCase(s string) string

func SnakeCaseToLowerCamelCase

func SnakeCaseToLowerCamelCase(s string) string

func SnakeCaseToLowerCase added in v1.98.0

func SnakeCaseToLowerCase(s string) string

func SnakeCaseToUpperCamelCase

func SnakeCaseToUpperCamelCase(s string) string

func UppercaseInitial

func UppercaseInitial(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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