benerin error

This commit is contained in:
angelicatesvara07-crypto 2026-09-22 14:18:02 +07:00
parent ebe397f096
commit f8214fda7d
5 changed files with 10 additions and 10 deletions

View File

@ -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)
}
}

2
go.mod
View File

@ -1,4 +1,4 @@
module 5803025024/w04
module 5803025015/w04
go 1.26.6

View File

@ -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
}
}

View File

@ -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'

View File

@ -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'