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