GoLang經過反射獲取結構體的字段

func main() { fmt.Println(GetFieldName(Student{})) fmt.Println(GetFieldName(&Student{})) fmt.Println(GetFieldName("")) fmt.Println(GetTagName(&Student{})) } type Student struct { Name string `
相關文章
相關標籤/搜索