Documentation ¶
Index ¶
- func Choose(cond bool, trueVal, falseVal string) string
- func EndsWith(s string, ending string) bool
- func ExtractNumbers(in string) (out string)
- func HasOnlyLetters(s string) bool
- func Indent(s string) string
- func JoinContent(sep string, items ...string) string
- func KebabToCamel(s string) string
- func LcFirst(s string) string
- func StartsWith(s string, beginning string) bool
- func Title(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Choose ¶ added in v0.7.0
Choose is like the ternary operator ?. It returns the first string on true, and the second on false.
func ExtractNumbers ¶ added in v0.7.1
func HasOnlyLetters ¶ added in v0.7.0
HasOnlyLetters will return false if any of the characters in the string do not pass the unicode.IsLetter test.
func JoinContent ¶ added in v0.7.0
JoinContent joins strings together with the separator sep. Only strings that are not empty strings are joined.
func KebabToCamel ¶ added in v0.2.4
func StartsWith ¶
StartsWith returns true if the string begins with the beginning string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.