Fork me on GitHub
// T 测试结构体 type T struct { // F0测试字段 F0 int `json:"-"` // F1测试字段 F1 bool `json:"f1"` // F2测试字段 F2 int `json:"f2"` // F3测试字段 F3 int8 `json:"f3"` // F4测试字段 F4 int16 `json:"f4"` // F5测试字段 F5 int32 `json:"f5"` // F6测试字段 F6 int64 `json:"f6"` // F7测试字段 F7 uint `json:"f7"` // F8测试字段 F8 uint8 `json:"f8"` // F9测试字段 F9 uint16 `json:"f9"` // F10测试字段 F10 uint32 `json:"f10"` // F11测试字段 F11 uint64 `json:"f11"` // F12测试字段 F12 uintptr `json:"f12"` // F13测试字段 F13 float32 `json:"f13"` // F14测试字段 F14 float64 `json:"f14"` // F15测试字段 F15 complex64 `json:"f15"` // F16测试字段 F16 complex128 `json:"f16"` // F17测试字段 F17 interface{} `json:"f17"` // F18测试字段 F18 map[string]string `json:"f18"` // F19测试字段 F19 string `json:"f19"` // F20测试字段 F20 []string `json:"f20"` // F21测试字段 F21 struct{} `json:"f21"` // F22测试字段 F22 User `json:"f22"` } type User struct { Name string `json:"name"` Age int `json:"age"` }