Files
go-sqlc-htmx/config/config.go
2025-05-28 20:43:37 +05:00

24 lines
294 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"),
},
JWT: struct{ Secret string }{
Secret: os.Getenv("JWT_SECRET"),
},
}
}