mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
refac: var -> const
This commit is contained in:
parent
44c1f56e9f
commit
a87101d1ea
@ -57,6 +57,6 @@ type BadRequestHtmlData struct {
|
||||
Message string
|
||||
}
|
||||
|
||||
var InvalidTitleOrTextErrorMessage = "TITLE OR TEXT SHOULD NOT BE EMPTY"
|
||||
var InvalidCaptchaErrorMessage = "INVALID CAPTCHA"
|
||||
var InvalidFileSizeMessage = "FILE SIZE EXCIDED (3MB PER FILE)"
|
||||
const InvalidTitleOrTextErrorMessage = "TITLE OR TEXT SHOULD NOT BE EMPTY"
|
||||
const InvalidCaptchaErrorMessage = "INVALID CAPTCHA"
|
||||
const InvalidFileSizeMessage = "FILE SIZE EXCIDED (3MB PER FILE)"
|
||||
|
@ -13,8 +13,8 @@ import (
|
||||
"github.com/disintegration/imaging"
|
||||
)
|
||||
|
||||
var UPLOADS_DIR_PATH = "uploads"
|
||||
var FILE_SIZE_IN_BYTES = 3145728 // 3MB
|
||||
const UPLOADS_DIR_PATH = "uploads"
|
||||
const FILE_SIZE_IN_BYTES = 3145728 // 3MB
|
||||
|
||||
// Check dir existence.
|
||||
func CheckIfFolderExists(path string) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user