Documentation
¶
Index ¶
- func EscapeSQLIdentifier(s string) string
- func GetFileExtension(path string) string
- func HasExtension(path, ext string) bool
- func IsValidIdentifier(s string) bool
- func PadString(s string, length int, char string) string
- func Pluralize(word string) string
- func Singularize(word string) string
- func StringToCamelCase(s string) string
- func StringToKebabCase(s string) string
- func StringToSnakeCase(s string) string
- func TruncateString(s string, length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeSQLIdentifier ¶
EscapeSQLIdentifier escapes a SQL identifier with double quotes.
func GetFileExtension ¶
GetFileExtension returns the file extension including the dot.
func HasExtension ¶
HasExtension checks if a path has a specific extension.
func IsValidIdentifier ¶
IsValidIdentifier checks if a string is a valid Go identifier.
func Singularize ¶
Singularize converts a plural noun to its singular form (simplified).
func StringToCamelCase ¶
StringToCamelCase converts snake_case to CamelCase.
func StringToKebabCase ¶
StringToKebabCase converts CamelCase to kebab-case.
func StringToSnakeCase ¶
StringToSnakeCase converts CamelCase to snake_case.
func TruncateString ¶
TruncateString truncates a string to a specific length.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.