package main type Story struct { Id int //Deleted bool Type string /* story, comment (or job, poll, pollopt) */ Title string /* title (only story) */ Text string /* comment text or possible text on story (HTML) */ Dead bool Url string /* verbatim parsed URL */ //NormalizedUrl string /* normalized */ Score int /* only story */ Descendants int /* comments on score or kids on comments */ //Kids []int /* id of the item's comments */ Time int /* posted at */ By string /* hn commenter */ Links []Link /* matched urls */ } type Link struct { Url string Field int /* 2 = video, 1 = movies, 0 = bug */ } type URL struct { }