Documentation ¶ Index ¶ func Itop(item Item) *pb.Item type Item func Ptoi(item *pb.Item) Item Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Itop ¶ func Itop(item Item) *pb.Item Types ¶ type Item ¶ type Item struct { ID int `json:"id"` Type string `json:"type"` Content string `json:"content"` URL string `json:"url"` Score int `json:"score"` Title string `json:"title"` CreatedAt time.Time `json:"createdAt"` CreatedBy string `json:"createdBy"` } Item represents a hacker news item func Ptoi ¶ func Ptoi(item *pb.Item) Item Source Files ¶ View all Source files item.go Click to show internal directories. Click to hide internal directories.