ZhangZhihui's Blog  

2024年5月25日

摘要: Choosing a value or pointer receiver There are two reasons to use a pointer receiver. The first is so that the method can modify the value that its re 阅读全文
posted @ 2024-05-25 18:52 ZhangZhihuiAAA 阅读(12) 评论(0) 推荐(0) 编辑
 
摘要: type Person struct { Id int `json:"id"` GivenName string `json:"given_name"` FamilyName string `json:"family_name"` Email string `json:"email"` } func 阅读全文
posted @ 2024-05-25 09:38 ZhangZhihuiAAA 阅读(6) 评论(0) 推荐(0) 编辑