repair package names and other fixed

This commit is contained in:
Daniel Goc
2026-03-11 14:17:26 +01:00
parent b6a50ec1ca
commit 4450468145
39 changed files with 128 additions and 119 deletions

View File

@@ -97,16 +97,14 @@ func Get() *Config {
// GetDSN returns the database connection string
func (c *DatabaseConfig) GetDSN() string {
return fmt.Sprintf(
"host=%s port=%d user=%s password=%s dbname=%s sslmode=%s",
c.Host,
c.Port,
"%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&loc=Local",
c.User,
c.Password,
c.Host,
c.Port,
c.Name,
c.SSLMode,
)
}
func load() *Config {
cfg := &Config{}