2012-11-22から1日間の記事一覧
試す。 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)) } 結果: http:…