package main import ( "encoding/xml" "fmt" "io/ioutil" "net/http" "time" ) type XML struct { Bookmarks []struct { Title string `xml:"title"` Link string `xml:"link"` Date string `xml:"date"` Count int `xml:"bookmarkcount"` } `xml:"item"` } func main() { data := httpGet("http://b.hatena.ne.jp/hotentry/it.rss") result := XML{} err := xml.Unmarshal([]byte(data), &result) if err != nil { fmt.Printf("e