14 lines
291 B
Go
14 lines
291 B
Go
|
|
package dbconfig
|
||
|
|
|
||
|
|
import "fmt"
|
||
|
|
|
||
|
|
const (
|
||
|
|
Host = "localhost"
|
||
|
|
Port = 5432
|
||
|
|
User = "postgres"
|
||
|
|
Password = "postgres"
|
||
|
|
DBName = "dvd_rental"
|
||
|
|
)
|
||
|
|
|
||
|
|
var ConnectString = fmt.Sprintf("host=%s port=%d user=%s "+"password=%s dbname=%s sslmode=disable", Host, Port, User, Password, DBName)
|