Let's say I have a database struct, maybe provided by my database internal package
type DatabaseConfig struct {
Host string `key:"HOST"`,
Port int `key:"PORT"`,
//...
}
I may want to introduce two of them
type MyProgramConfig struct {
UserDatabase DatabaseConfig `keyPrefix:"USER_"`
ProductDatabase DatabaseConfig `keyPrefix:"PRODUCT_"`
}
Let's say I have a database struct, maybe provided by my database internal package
I may want to introduce two of them