chore: move var declaration

This commit is contained in:
Tobias Lindberg
2025-09-09 10:10:19 +02:00
parent 77d71a470d
commit f37768fcdc
3 changed files with 10 additions and 6 deletions

View File

@@ -7,6 +7,11 @@ import (
"github.com/gin-gonic/gin"
)
var (
// defining envToken that contains API_TOKEN value
envToken string
)
// initAuthToken func
func initAuthToken() {
// get token from environment variable API_TOKEN

View File

@@ -10,6 +10,11 @@ import (
"github.com/gin-gonic/gin"
)
var (
// list of allowed commands
allowList []string
)
// initCommandAllowList func
func initCommandAllowList() {

View File

@@ -29,12 +29,6 @@ var (
// defining db var
db *sql.DB
// defining envToken that contains API_TOKEN value
envToken string
// list of allowed commands
allowList []string
// app-settings
appUsersTimezone *time.Location
)