From 3f5c0c9472ac3912613594db0d38f8ea1c422c0c Mon Sep 17 00:00:00 2001 From: ditatompel Date: Wed, 19 Jun 2024 16:24:18 +0700 Subject: [PATCH] refactor: Lowercase & upperase initialism acronyms --- internal/config/app.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/config/app.go b/internal/config/app.go index eced19a..b4719c1 100644 --- a/internal/config/app.go +++ b/internal/config/app.go @@ -19,9 +19,9 @@ type App struct { // configuration for prober (client) ServerEndpoint string - ApiKey string + APIKey string AcceptTor bool - TorSocks string + TorSOCKS string } var app = &App{} @@ -54,7 +54,7 @@ func LoadApp() { // prober configuration app.ServerEndpoint = os.Getenv("SERVER_ENDPOINT") - app.ApiKey = os.Getenv("API_KEY") + app.APIKey = os.Getenv("API_KEY") app.AcceptTor, _ = strconv.ParseBool(os.Getenv("ACCEPT_TOR")) - app.TorSocks = os.Getenv("TOR_SOCKS") + app.TorSOCKS = os.Getenv("TOR_SOCKS") }