Documentation
¶
Index ¶
- func Capitalize(str string) string
- func ConvertToBigCamelCase(name string) string
- func ConvertToLittleCamelCase(name string) string
- func DeleteExtraSpace(s string) string
- func GeneratePasswd(length int) string
- func GetExtension(file *multipart.FileHeader) string
- func GetNumberEncode(max int) string
- func GetTenantRandomName(userId int64, extensionName string) string
- func GetUUID() string
- func ToUnderScoreCase(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToBigCamelCase ¶
ConvertToBigCamelCase 将下划线大写方式命名的字符串转换为驼峰式。如果转换前的下划线大写方式命名的字符串为空,则返回空字符串。 例如:HELLO_WORLD->HelloWorld
func ConvertToLittleCamelCase ¶
ConvertToLittleCamelCase 将下划线大写方式命名的字符串转换为驼峰式,首字母小写。如果转换前的下划线大写方式命名的字符串为空,则返回空字符串。 例如:HELLO_WORLD->helloWorld
func DeleteExtraSpace ¶
func GeneratePasswd ¶
func GetExtension ¶
func GetExtension(file *multipart.FileHeader) string
func GetNumberEncode ¶
func GetTenantRandomName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.