摘要: 指定json中的key名字: 指定数据类型, string number, boolean 忽略空值(值不为空, 不忽略) 忽略字段 "-" (无论有没有值, 都忽略) type user struct { Id int64 `json:"id,string,omitempty"` } 阅读全文
posted @ 2019-06-03 15:22 knox大树 阅读(1753) 评论(0) 推荐(0) 编辑