This question already has an answer here:
what is the meaning of following statement in Go?
struct {}{}
First curly braces probably mean interface or initialisation with blank. What does second curly braces do.
</div>
This question already has an answer here:
what is the meaning of following statement in Go?
struct {}{}
First curly braces probably mean interface or initialisation with blank. What does second curly braces do.
</div>
The first braces mean you have declared a struct with empty field. and the Second braces is meaning you are going to new one instance of your struct, which you have declared before.