Documentation
¶
Index ¶
- func FirstLetter(s string) string
- func GetDirectoryOfCurrentFile() string
- func IsSnakeCase(s string) bool
- func Pluralize(s string) string
- func SnakeToCamel(s string) string
- func SnakeToFlat(s string) string
- func SnakeToKebab(s string) string
- func SnakeToPascal(s string) string
- func TitleCase(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstLetter ¶
FirstLetter returns the first letter of the string in lowercase (e.g. "UserAccount" -> "u")
func GetDirectoryOfCurrentFile ¶
func GetDirectoryOfCurrentFile() string
GetDirectoryOfCurrentFile returns the directory of the current file
func IsSnakeCase ¶ added in v0.1.65
func Pluralize ¶ added in v0.1.68
Pluralize returns the plural form of the string (e.g. "User" -> "Users")
func SnakeToCamel ¶
SnakeToCamel converts a snake_case string to camelCase (e.g. "user_account" -> "userAccount")
func SnakeToFlat ¶
SnakeToFlat converts a snake_case string to flat case (e.g. "user_account" -> "UserAccount")
func SnakeToKebab ¶
SnakeToKebab converts a snake_case string to kebab-case (e.g. "user_account" -> "user-account")
func SnakeToPascal ¶
SnakeToPascal converts a snake_case string to PascalCase (e.g. "user_account" -> "UserAccount")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.