add dotenv in go server

This commit is contained in:
2026-10-27 09:25:52 +03:00
parent 785cb6b7fc
commit b122cbb652
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -13,6 +13,8 @@ import (
"github.com/ruby-sea-battle/game-server/internal/config"
"github.com/ruby-sea-battle/game-server/internal/game"
"github.com/ruby-sea-battle/game-server/internal/ws"
_ "github.com/joho/godotenv/autoload"
)
func main() {
+2
View File
@@ -6,3 +6,5 @@ require (
github.com/coder/websocket v1.8.15
github.com/golang-jwt/jwt/v5 v5.3.1
)
require github.com/joho/godotenv v1.5.1 // indirect
+2
View File
@@ -2,3 +2,5 @@ github.com/coder/websocket v1.8.15 h1:6B2JPeOGlpff2Uz6vOEH1Vzpi0iUz20A+lPVhPHtNU
github.com/coder/websocket v1.8.15/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg=
github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY=
github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=