{"author_name":"atotto","width":"100%","author_url":"https://blog.hatena.ne.jp/atotto/","blog_title":"memo\u30e1\u30e2","title":"Go\u8a00\u8a9e\u3067JSON(Marshal)\u30a8\u30f3\u30b3\u30fc\u30c9","provider_name":"Hatena Blog","description":"\u8a66\u3059\u3002 package main import ( \"encoding/json\" \"fmt\" ) type Message struct { Name string Body string Time int64 } func main() { m := Message{\"Alice\", \"Hello\", 1294706395881547000} b, _ := json.Marshal(m) fmt.Println(string(b)) } \u7d50\u679c\uff1a http://play.golang.org/p/AxOzD0z99d \u53c2\u8003\uff1a http://golang.org/doc/articles/j\u2026","provider_url":"https://hatena.blog","categories":["golang"],"blog_url":"https://atotto.hatenadiary.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatotto.hatenadiary.jp%2Fentry%2F2012%2F11%2F22%2F223334\" title=\"Go\u8a00\u8a9e\u3067JSON(Marshal)\u30a8\u30f3\u30b3\u30fc\u30c9 - memo\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2012-11-22 22:33:34","version":"1.0","type":"rich","image_url":null,"height":"190","url":"https://atotto.hatenadiary.jp/entry/2012/11/22/223334"}