In Go, is there anything like Java's Class.newInstance?

后端 未结 0 423
一生所求
一生所求 2020-12-15 09:23
  1. I know there is no default constructor in Go.
  2. I want to new some "decoder" at runtime, according to received message\'s type.

So, what

相关标签:
回答
  • 消灭零回复
提交回复
热议问题