stringUtils

package
v0.0.0-...-7bb2ca5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(str string) string

Capitalize 字符首字母大写

func ConvertToBigCamelCase

func ConvertToBigCamelCase(name string) string

ConvertToBigCamelCase 将下划线大写方式命名的字符串转换为驼峰式。如果转换前的下划线大写方式命名的字符串为空,则返回空字符串。 例如:HELLO_WORLD->HelloWorld

func ConvertToLittleCamelCase

func ConvertToLittleCamelCase(name string) string

ConvertToLittleCamelCase 将下划线大写方式命名的字符串转换为驼峰式,首字母小写。如果转换前的下划线大写方式命名的字符串为空,则返回空字符串。 例如:HELLO_WORLD->helloWorld

func DeleteExtraSpace

func DeleteExtraSpace(s string) string

func GeneratePasswd

func GeneratePasswd(length int) string

func GetExtension

func GetExtension(file *multipart.FileHeader) string

func GetNumberEncode

func GetNumberEncode(max int) string

func GetTenantRandomName

func GetTenantRandomName(userId int64, extensionName string) string

func GetUUID

func GetUUID() string

func ToUnderScoreCase

func ToUnderScoreCase(str string) string

ToUnderScoreCase 将驼峰命名转下划线命名

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL