From f8214fda7ddf4acb1fd2f4231d1f09ed914c7b1e Mon Sep 17 00:00:00 2001 From: angelicatesvara07-crypto Date: Tue, 22 Sep 2026 14:18:02 +0700 Subject: [PATCH] benerin error --- cmd/server/main.go | 7 +++---- go.mod | 2 +- internal/config/config.go | 3 ++- pkg/.env | 6 +++--- pkg/.env.example | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index dc5b409..acf7e04 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -5,9 +5,8 @@ import ( "fmt" "os" - "5803025024/w04/internal/config" - "5803025024/w04/internal/database" - + "5803025015/w04/internal/config" + "5803025015/w04/internal/database" ) func main() { @@ -32,4 +31,4 @@ func main() { } fmt.Println(name, weight) -} \ No newline at end of file +} diff --git a/go.mod b/go.mod index 8930667..3a93f8b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module 5803025024/w04 +module 5803025015/w04 go 1.26.6 diff --git a/internal/config/config.go b/internal/config/config.go index 676873e..b41288f 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -2,6 +2,7 @@ package config import ( "fmt" + "github.com/joho/godotenv" ) @@ -11,4 +12,4 @@ func LoadEnv() error { return fmt.Errorf("Error loading .env file: %v", err) } return nil -} \ No newline at end of file +} diff --git a/pkg/.env b/pkg/.env index 8b3a6d9..9561331 100644 --- a/pkg/.env +++ b/pkg/.env @@ -7,7 +7,7 @@ ENVIROMENT=dev # Options: dev, stage, prod # DB_HOST=202.46.28.160 DB_PORT=2003 -DB_USER=5803025024 -DB_PASSWORD=pw5803025024 -DB_NAME=w04_5803025024 +DB_USER=5803025015 +DB_PASSWORD=pw5803025015 +DB_NAME=w04_5803025015 DB_SSLMODE=disable # 'disable' or 'require' \ No newline at end of file diff --git a/pkg/.env.example b/pkg/.env.example index 0cbbef5..f3e24a2 100644 --- a/pkg/.env.example +++ b/pkg/.env.example @@ -8,6 +8,6 @@ ENVIROMENT=dev # Options: dev, stage, prod DB_HOST=localhost DB_PORT=5432 DB_USER=postgres -DB_PASSWORD=5803025024 +DB_PASSWORD=5803025015 DB_NAME=snippetboox DB_SSLMODE=disable # 'disable' or 'require' \ No newline at end of file