How to discover all package types at runtime?

后端 未结 5 1496
醉酒成梦
醉酒成梦 2020-12-14 02:55

As far as I\'m aware (see here, and here) there is no type discovery mechanism in the reflect package, which expects that you already have an instance of the type or value y

5条回答
  •  北海茫月
    2020-12-14 03:30

    No there is not.

    If you want to 'know' your types you'll have to register them.

提交回复
热议问题