Documentation
¶
Index ¶
- func DecodeBase64ToUint(encoded string) (uint, error)
- func DecodeFromBase64(s string) (string, error)
- func EncodeToBase64(s string) string
- func EncodeUintToBase64(value uint) string
- func Hash(s string) string
- func RespondWithJSON(c *gin.Context, code int, status string, data interface{})
- func SaveFileLocal(fileHeader *multipart.FileHeader, dst string) error
- func ValidateFileType(fileHeader *multipart.FileHeader, expectedType string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64ToUint ¶
DecodeBase64ToUint decodes a Base64 string to a uint
func DecodeFromBase64 ¶
DecodeFromBase64 decodes a Base64-encoded string
func EncodeToBase64 ¶
EncodeToBase64 encodes a string to Base64
func EncodeUintToBase64 ¶
EncodeUintToBase64 encodes a uint to a Base64 string
func RespondWithJSON ¶
func SaveFileLocal ¶
func SaveFileLocal(fileHeader *multipart.FileHeader, dst string) error
Save the uploaded file to the specified destination
func ValidateFileType ¶
func ValidateFileType(fileHeader *multipart.FileHeader, expectedType string) bool
ValidateFileType checks if the file matches the expected type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.