2016-07-20 23:04
浏览 393

如何在golang中实现void *? [重复]

This question already has an answer here:

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


2条回答 默认 最新

相关推荐 更多相似问题