Documentation ¶
Index ¶
- func CheckFolder(folderPath string)
- func ConstructColNameAndValue(ctx context.Context, structName interface{}, isNullStruct ...bool) ([]string, []interface{})
- func ConstructColNameAndValueBulk(ctx context.Context, arrayOfData interface{}) (*database.CUDConstructData, error)
- func ConstructColNameAndValueForUpdate(_ context.Context, structName interface{}, anotherValues ...interface{}) *database.CUDConstructData
- func GenerateRandomString(length int) string
- func GenerateRandomStringWithCharset(length int, charset string) string
- func GenerateSelectCols(ctx context.Context, source interface{}, isNullStruct ...bool) []string
- func GenerateUUID() string
- func GenerateUUIDV4() string
- func GetFilePath() string
- func GetFolderAndFileName(path string) (folderPath string, fileName string)
- func GetFolderNameWithoutTmp(path string) (folderName string)
- func GetTemplate(embedFS embed.FS, file string, args, destStruct interface{}) error
- func GetTmpFolderPath() (string, error)
- func ToCamelCase(str string) string
- func ToLowerCamelCase(str string) string
- func ToSnakeCase(s string) string
- func TrimDuplicatedSpace(str string) string
- func UploadToTmp(_ context.Context, path *string, file multipart.File) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFolder ¶
func CheckFolder(folderPath string)
func ConstructColNameAndValueBulk ¶ added in v0.5.0
func ConstructColNameAndValueBulk(ctx context.Context, arrayOfData interface{}) (*database.CUDConstructData, error)
func ConstructColNameAndValueForUpdate ¶
func ConstructColNameAndValueForUpdate(_ context.Context, structName interface{}, anotherValues ...interface{}) *database.CUDConstructData
func GenerateRandomString ¶
func GenerateSelectCols ¶
func GenerateUUID ¶
func GenerateUUID() string
func GenerateUUIDV4 ¶
func GenerateUUIDV4() string
func GetFilePath ¶
func GetFilePath() string
func GetFolderAndFileName ¶
func GetFolderNameWithoutTmp ¶
func GetTemplate ¶ added in v1.1.6
func GetTmpFolderPath ¶ added in v0.2.0
func ToCamelCase ¶
ToCamelCase - will be convert string to camel case format
example:"AnyKind of_string" result:"AnyKindOfString"
func ToLowerCamelCase ¶
ToLowerCamelCase - will be convert string to camel case format with lower case at first letter
example:"AnyKind of_string" result:"anyKindOfString"
func ToSnakeCase ¶
ToSnakeCase - will be convert string to snake case format
example:"AnyKind of_string" result:"any_kind_of_string"
func TrimDuplicatedSpace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.