Documentation ¶
Index ¶
- func DelimHyphen(s *strings.Builder)
- func DelimSpace(s *strings.Builder)
- func DelimUnderscore(s *strings.Builder)
- func ToCamel(s string) string
- func ToKebab(s string) string
- func ToLower(s string) string
- func ToPascal(s string) string
- func ToScreamingKebab(s string) string
- func ToScreamingSnake(s string) string
- func ToSnake(s string) string
- func ToTitle(s string) string
- func ToTrain(s string) string
- func ToUpper(s string) string
- func Transform(s string, wf writeFn, df delimFn) string
- func WriteLower(s *strings.Builder, word string)
- func WriteTitle(s *strings.Builder, word string)
- func WriteUpper(s *strings.Builder, word string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelimHyphen ¶
DelimHyphen is a delimiter function that inserts a hyphen.
func DelimSpace ¶ added in v0.1.3
DelimSpace is a delimiter function that inserts a space.
func DelimUnderscore ¶
DelimUnderscore is a delimiter function that inserts an underscore.
func ToScreamingKebab ¶
ToScreamingKebab converts a string to SCREAMING-KEBAB-CASE.
func ToScreamingSnake ¶
ToScreamingSnake converts a string to SCREAMING_SKAKE_CASE.
func Transform ¶
Transform reconstructs the string using the given functions.
wordFn is called for each word and delimFn is called for each word boundary.
func WriteLower ¶
WriteLower writes the word in lowercase.
func WriteTitle ¶
WriteTitle writes the word in title case.
func WriteUpper ¶
WriteUpper writes the word in uppercase.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.