benerin error
This commit is contained in:
parent
ebe397f096
commit
f8214fda7d
@ -5,9 +5,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"5803025024/w04/internal/config"
|
"5803025015/w04/internal/config"
|
||||||
"5803025024/w04/internal/database"
|
"5803025015/w04/internal/database"
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -32,4 +31,4 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(name, weight)
|
fmt.Println(name, weight)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package config
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -11,4 +12,4 @@ func LoadEnv() error {
|
|||||||
return fmt.Errorf("Error loading .env file: %v", err)
|
return fmt.Errorf("Error loading .env file: %v", err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
6
pkg/.env
6
pkg/.env
@ -7,7 +7,7 @@ ENVIROMENT=dev # Options: dev, stage, prod
|
|||||||
#
|
#
|
||||||
DB_HOST=202.46.28.160
|
DB_HOST=202.46.28.160
|
||||||
DB_PORT=2003
|
DB_PORT=2003
|
||||||
DB_USER=5803025024
|
DB_USER=5803025015
|
||||||
DB_PASSWORD=pw5803025024
|
DB_PASSWORD=pw5803025015
|
||||||
DB_NAME=w04_5803025024
|
DB_NAME=w04_5803025015
|
||||||
DB_SSLMODE=disable # 'disable' or 'require'
|
DB_SSLMODE=disable # 'disable' or 'require'
|
||||||
@ -8,6 +8,6 @@ ENVIROMENT=dev # Options: dev, stage, prod
|
|||||||
DB_HOST=localhost
|
DB_HOST=localhost
|
||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
DB_USER=postgres
|
DB_USER=postgres
|
||||||
DB_PASSWORD=5803025024
|
DB_PASSWORD=5803025015
|
||||||
DB_NAME=snippetboox
|
DB_NAME=snippetboox
|
||||||
DB_SSLMODE=disable # 'disable' or 'require'
|
DB_SSLMODE=disable # 'disable' or 'require'
|
||||||
Loading…
x
Reference in New Issue
Block a user