How to get all defined types?

前端 未结 4 1151
我在风中等你
我在风中等你 2020-12-21 03:10
package demo

type People struct {
    Name string
    Age  uint
}

type UserInfo struct {
    Address  string
    Hobby           


        
4条回答
  •  醉梦人生
    2020-12-21 04:13

    Go retains no master list of structs, interfaces, or variables at the package level, so what you ask is unfortunately impossible.

提交回复
热议问题