I want to test my serialization format for robustnes and want to serialize a nested array. The Serialization actually dies at some point, but I don't know at what depth exactly. Right now I just define a large array manually, but I want to do it programatically, so I can figure out when exactly the depth is too high. Changing the code for each iteration is tedious...
l := [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]string {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{"a"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
What I want is something like this:
l := "a"
while(1){
l = {l} //nest the slice/array once more
print("round ", i)
i++
}
I'm a Golang newbie and I don't know how I can get around the type-safety in this case.