Files
go-sqlc-htmx/config/config.go
2025-06-12 13:12:20 +03:00

25 lines
371 B
Go

package config
import "os"
type Config struct {
DB struct {
DSN string
}
JWT struct {
Secret string
}
}
func GetCfg() Config {
return Config{
DB: struct{ DSN string }{
// DSN: os.Getenv("DB_DSN"),
DSN: "postgresql://dmchumak:@localhost:5432/dmchumak?sslmode=disable",
},
JWT: struct{ Secret string }{
Secret: os.Getenv("JWT_SECRET"),
},
}
}