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 GenerateJWTToken(data interface{}) (string, error)
- 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 GetColorUniform(hexColor string) *image.Uniform
- func GetFilePath() string
- func GetFolderAndFileName(path string) (folderPath string, fileName string)
- func GetFolderNameWithoutTmp(path string) (folderName string)
- func GetTemplate(file string, args, destStruct interface{}) error
- func GetTemplateFS(embedFS embed.FS, file string, args, destStruct interface{}) error
- func GetTmpFolderPath() (string, error)
- func ParseFileTemplate(filePath string, args interface{}, additionalBodyContent ...string) (bytes.Buffer, error)
- func ParseHexColor(s string) (c color.RGBA, err error)
- func ParseTemplate(embedFS embed.FS, file string, args interface{}, ...) (bytes.Buffer, error)
- func ToCamelCase(str string) string
- func ToLowerCamelCase(str string) string
- func ToSnakeCase(s string) string
- func TrimDuplicatedSpace(str string) string
- func UploadToTmp(ctx context.Context, path *string, file multipart.File, ...) error
- type CloudStorageTmpUpload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFolder ¶
func CheckFolder(folderPath string)
func ConstructColNameAndValueForUpdate ¶
func ConstructColNameAndValueForUpdate(_ context.Context, structName interface{}, anotherValues ...interface{}) *database.CUDConstructData
func GenerateJWTToken ¶
func GenerateRandomString ¶
func GenerateSelectCols ¶
func GenerateUUID ¶
func GenerateUUID() string
func GenerateUUIDV4 ¶
func GenerateUUIDV4() string
func GetColorUniform ¶
func GetFilePath ¶
func GetFilePath() string
func GetFolderAndFileName ¶
func GetFolderNameWithoutTmp ¶
func GetTemplate ¶
func GetTemplateFS ¶
func GetTmpFolderPath ¶
func ParseFileTemplate ¶
func ParseTemplate ¶
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 ¶
func UploadToTmp ¶
Types ¶
type CloudStorageTmpUpload ¶
Click to show internal directories.
Click to hide internal directories.