I am wondering what does "struct{}" and "struct{}{}" mean in Go? An example is as follows:
array[index] = struct{}{}
or
make(map[type]struct{})
I am wondering what does "struct{}" and "struct{}{}" mean in Go? An example is as follows:
array[index] = struct{}{}
or
make(map[type]struct{})