catbase/plugins/newsbid/webshit/hn/structs.go

25 lines
681 B
Go
Raw Permalink Normal View History

2019-11-21 16:59:52 +00:00
package hn
type Item struct {
ID int `json:"id"`
Deleted bool `json:"deleted"`
Type string `json:"type"`
By string `json:"by"`
Time int `json:"time"`
Text string `json:"text"`
Dead bool `json:"dead"`
Parent int `json:"parent"`
Poll []int `json:"poll"` // check this
Kids []int `json:"kids"`
URL string `json:"url"`
Score int `json:"score"`
Title string `json:"title"`
Parts []int `json:"parts"`
Descendants int `json:"descendants"`
2019-12-20 18:31:05 +00:00
// This is not in the API but it's
// easier to hack it in here than
// fix my code.
Bid string `json:"bid"`
2019-11-21 16:59:52 +00:00
}