refac: var -> const

This commit is contained in:
Yanislav Igonin 2021-10-10 10:42:28 +03:00
parent 44c1f56e9f
commit a87101d1ea
2 changed files with 5 additions and 5 deletions

View File

@ -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)"

View 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 {