package configStruct import "fmt" type Otel struct { Host string `env:"OTEL_HOST" envDefault:"localhost" configPath:"Otel.Host"` Port int `env:"OTEL_PORT" envDefault:"4317" configPath:"Otel.Port"` Enable bool `env:"OTEL_ENABLED" envDefault:"True" configPath:"Otel.Enable"` } func (o Otel) GetAddr() string { return fmt.Sprintf("%s:%d", o.Host, o.Port) }