package main type Data struct { Eras map[string]string `json:"eras"` Agents map[string]struct { Browser string `json:"browser"` LongName string `json:"long_name"` Abbr string `json:"abbr"` Prefix string `json:"prefix"` Type string `json:"type"` UsageGlobal map[string]float64 `json:"usage_global"` Versions []string `json:"versions"` } `json:"agents"` Statuses struct { Rec string `json:"rec"` Pr string `json:"pr"` Cr string `json:"cr"` Wd string `json:"wd"` Ls string `json:"ls"` Other string `json:"other"` Unoff string `json:"unoff"` } `json:"statuses"` Cats map[string][]string `json:"cats"` Data map[string]struct { Title string `json:"title"` Description string `json:"description"` Spec string `json:"spec"` Status string `json:"status"` Links []struct { URL string `json:"url"` Title string `json:"title"` } `json:"links"` Categories []string `json:"categories"` Stats map[string]map[string]stat `json:"stats"` Notes string `json:"notes"` NotesByNum map[string]string `json:"notes_by_num"` UsagePercY float64 `json:"usage_perc_y"` UsagePercA float64 `json:"usage_perc_a"` UCPrefix bool `json:"ucprefix"` Parent string `json:"parent"` Keywords string `json:"keywords"` IEID string `json:"ie_id"` ChromeID string `json:"chrome_id"` FirefoxID string `json:"firefox_id"` WebkitID string `json:"webkit_id"` } `json:"data"` } type stat string func (s stat) Bool() bool { return s == "y" }