This question already has an answer here:
- Go equivalent of a void pointer in C 1 answer
I'm making a (non-binary) tree in Golang.
In Java, I'd use something like
class Node{
List <Object> data;
}
Where data can be either a pointer to data or to a child node
In C or C++, I'd use a void*.
What type should I use in golang
</div>