Import of top news from Hacker News api

This commit is contained in:
Riccardo
2022-07-15 12:52:46 +02:00
parent 573cd14683
commit 61f2fff12f
5 changed files with 68 additions and 505 deletions

View File

@@ -17,18 +17,18 @@ type Table struct {
}
type News struct {
Id int
Title string
Text string
Time time.Time
By string
Url string
Score int
Parent int
Descendants string
Category string
Delete bool
Dead bool
Id int `json:"id"`
Title string `json:"title"`
Text string `json:"text"`
Timestamp int `json:"time"`
Author string `json:"by"`
Url string `json:"url"`
Score int `json:"score"`
Parent int `json:"parent"`
Comments int `json:"descendants"`
Category string `json:"type"`
Delete bool `json:"delete"`
Dead bool `json:"dead"`
}
type DynamoDBDescribeTableAPI interface {