Documentation ¶
Index ¶
- func BadRequestResponse(c *fiber.Ctx, message string)
- func CheckAndConvertId(numberString string, idName string, modelType interface{}) (int64, bool, int, models.GenericResponse)
- func DeleteFile(file models.File) error
- func GetFileExtension(s string) (string, error)
- func IsStringInSlice(a string, list []string) bool
- func MimeTypeToFileExt(mimeType string) (string, error)
- func NotFoundResponse(c *fiber.Ctx, message string)
- func RandomHex(n int) (string, error)
- func RotateImage(imgPath string) error
- func SaveBytesToDisk(path string, content []byte) error
- func SelectiveUpdate(old string, new string) string
- func UnauthorisedResponse(c *fiber.Ctx, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequestResponse ¶
func CheckAndConvertId ¶
func DeleteFile ¶
func GetFileExtension ¶
func IsStringInSlice ¶
func MimeTypeToFileExt ¶
func RotateImage ¶
func SaveBytesToDisk ¶
func SelectiveUpdate ¶
func UnauthorisedResponse ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.