Dodavanje godotenv zavisnosti i učitavanje .env fajla

This commit is contained in:
2026-05-31 17:11:50 +02:00
parent 64508fde6f
commit 80b205021d
3 changed files with 9 additions and 1 deletions
+6 -1
View File
@@ -6,11 +6,16 @@ import (
"net/http"
"os"
"github.com/go-chi/chi/v5"
"ntech/internal/config"
"github.com/go-chi/chi/v5"
"github.com/joho/godotenv"
)
func main() {
// učitaj .env fajl ako postoji
godotenv.Load()
if config.JelPrvoPokretanje() {
config.PokreniSetup()
return