package config type DatabaseConfig struct { Type string `ini:"type" yaml:"type" mapstructure:"type"` SqliteConfig SqliteConfig `ini:"sqlite" yaml:"sqlite" mapstructure:"sqlite"` PostgreSqlConfig PostgreSqlConfigMap `ini:"postgres" yaml:"postgres" mapstructure:"postgres"` } var Database = DatabaseConfig{ Type: "sqlite", SqliteConfig: Sqlite, PostgreSqlConfig: PostgreSql, }