{"categories":["Go"],"height":"190","provider_name":"Hatena Blog","blog_url":"https://ema-hiro.hatenablog.com/","author_name":"ema_hiro","title":"struct\u306eomitempty\u306e\u6319\u52d5\u3068\u4f7f\u3044\u6240\u306e\u691c\u8a0e","author_url":"https://blog.hatena.ne.jp/ema_hiro/","version":"1.0","provider_url":"https://hatena.blog","blog_title":"emahiro/b.log","width":"100%","image_url":null,"description":"golang\u306estruct\u3067json\u306eencoding\u306e\u305f\u3081\u306eproperty\u306b omitempty \u3092\u3064\u3051\u305f\u6642\u306e\u6319\u52d5\u3068\u305d\u306e\u4f7f\u3044\u3069\u3053\u3092\u691c\u8a0e\u3057\u307e\u3059\u3002 omitempty\u30bf\u30b0\u3068\u306f https://golang.org/pkg/encoding/json/#Marshal \u306b\u306f\u4ee5\u4e0b\u306e\u7528\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3002 The \"omitempty\" option specifies that the field should be omitted from the encoding if the field has an emptyvalue, defined as false, 0, a nil pointer\u2026","url":"https://ema-hiro.hatenablog.com/entry/2018/01/17/024321","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F2018%2F01%2F17%2F024321\" title=\"struct\u306eomitempty\u306e\u6319\u52d5\u3068\u4f7f\u3044\u6240\u306e\u691c\u8a0e - emahiro/b.log\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2018-01-17 02:43:21"}