This question already has an answer here:
- Initialize a nested struct 8 answers
Similar to this question, I'm try to initialize the following structure with some default values:
type Configuration struct {
Val string
Proxy []struct {
Address string
Port string
}
}
Is there a way to do this without declaring Proxy
separately?
</div>